github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_nodemcu.go (about) 1 //go:build nodemcu 2 3 // Pinout for the NodeMCU dev kit. 4 5 package machine 6 7 // GPIO pins on the NodeMCU board. 8 const ( 9 D0 = GPIO16 10 D1 = GPIO5 11 D2 = GPIO4 12 D3 = GPIO0 13 D4 = GPIO2 14 D5 = GPIO14 15 D6 = GPIO12 16 D7 = GPIO13 17 D8 = GPIO15 18 ) 19 20 // Onboard blue LED (on the AI-Thinker module). 21 const LED = D4 22 23 // SPI pins 24 const ( 25 SPI0_SCK_PIN = D5 26 SPI0_SDO_PIN = D7 27 SPI0_SDI_PIN = D6 28 SPI0_CS0_PIN = D8 29 ) 30 31 // I2C pins 32 const ( 33 SDA_PIN = D2 34 SCL_PIN = D1 35 )