aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/board_nodemcu.go
blob: f204b7770f0dab5bd311b3295f0e0a666b15770f (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
//go:build nodemcu
// +build nodemcu

// Pinout for the NodeMCU dev kit.

package machine

// GPIO pins on the NodeMCU board.
const (
	D0 = GPIO16
	D1 = GPIO5
	D2 = GPIO4
	D3 = GPIO0
	D4 = GPIO2
	D5 = GPIO14
	D6 = GPIO12
	D7 = GPIO13
	D8 = GPIO15
)

// Onboard blue LED (on the AI-Thinker module).
const LED = D4

// SPI pins
const (
	SPI0_SCK_PIN = D5
	SPI0_SDO_PIN = D7
	SPI0_SDI_PIN = D6
	SPI0_CS0_PIN = D8
)

// I2C pins
const (
	SDA_PIN = D2
	SCL_PIN = D1
)