aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/board_esp32c3-12f.go
blob: f023bb9d61ef31ed242889da2d04e90fe756e4b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//go:build esp32c312f

package machine

// Built-in RGB LED
const (
	LED_RED   = IO3
	LED_GREEN = IO4
	LED_BLUE  = IO5
	LED       = LED_RED
)

const (
	IO0  = GPIO0
	IO1  = GPIO1
	IO2  = GPIO2
	IO3  = GPIO3
	IO4  = GPIO4
	IO5  = GPIO5
	IO6  = GPIO6
	IO7  = GPIO7
	IO8  = GPIO8
	IO9  = GPIO9
	IO10 = GPIO10
	IO18 = GPIO18
	IO19 = GPIO19
	RXD  = GPIO20
	TXD  = GPIO21
)

// ADC pins
const (
	ADC0 Pin = ADC1_0
	ADC1 Pin = ADC2_0

	ADC1_0 Pin = IO0
	ADC1_1 Pin = IO1
	ADC1_2 Pin = IO2
	ADC1_3 Pin = IO3
	ADC1_4 Pin = IO4
	ADC2_0 Pin = IO5
)

// UART0 pins
const (
	UART_TX_PIN = TXD
	UART_RX_PIN = RXD
)

// I2C pins
const (
	SCL_PIN = NoPin
	SDA_PIN = NoPin
)