blob: bc6b60004183f9a613f7592fd5e5577c807c6de2 (
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
|
//go:build mch2022
package machine
// See: https://badge.team/docs/badges/mch2022/pinout/
const (
UART_TX_PIN Pin = 1
UART_RX_PIN Pin = 3
WS2812 Pin = 5
PowerOn Pin = 19 // Set high to enable power to LEDs and SD card
// I2C pins
SDA_PIN Pin = 22
SCL_PIN Pin = 21
// SPI and related pins (ICE40 and LCD).
LCD_RESET Pin = 25
LCD_MODE Pin = 26
LCD_DC Pin = 33
SPI0_SCK_PIN Pin = 18
SPI0_SDO_PIN Pin = 23
SPI0_SDI_PIN Pin = 35 // connected to ICE40
SPI0_CS_ICE40_PIN Pin = 27
SPI0_CS_LCD_PIN Pin = 32
)
|