mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 03:53:42 +00:00
boards: Add MCH2022 badge
I haven't fully tested this badge because I don't have the physical hardware but I have followed the pinout from the website.
This commit is contained in:
committed by
Ron Evans
parent
69a6718b38
commit
610e7fd16a
@@ -0,0 +1,29 @@
|
||||
//go:build mch2022
|
||||
// +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
|
||||
)
|
||||
Reference in New Issue
Block a user