github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/board_mch2022.go (about) 1 //go:build mch2022 2 3 package machine 4 5 // See: https://badge.team/docs/badges/mch2022/pinout/ 6 7 const ( 8 UART_TX_PIN Pin = 1 9 UART_RX_PIN Pin = 3 10 11 WS2812 Pin = 5 12 13 PowerOn Pin = 19 // Set high to enable power to LEDs and SD card 14 15 // I2C pins 16 SDA_PIN Pin = 22 17 SCL_PIN Pin = 21 18 19 // SPI and related pins (ICE40 and LCD). 20 LCD_RESET Pin = 25 21 LCD_MODE Pin = 26 22 LCD_DC Pin = 33 23 SPI0_SCK_PIN Pin = 18 24 SPI0_SDO_PIN Pin = 23 25 SPI0_SDI_PIN Pin = 35 // connected to ICE40 26 SPI0_CS_ICE40_PIN Pin = 27 27 SPI0_CS_LCD_PIN Pin = 32 28 )