diff options
author | sago35 <[email protected]> | 2022-11-23 14:12:33 +0900 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-11-23 09:01:48 +0100 |
commit | baca8a643e438211cada019385aaf476cbeb1f4b (patch) | |
tree | 2acfa0d5d275e6d1f7d0c6f1ef2bb22a3080b873 /src/machine/board_xiao-rp2040.go | |
parent | b731919f97512e27a492f44942238c21f442c8d0 (diff) | |
download | tinygo-baca8a643e438211cada019385aaf476cbeb1f4b.tar.gz tinygo-baca8a643e438211cada019385aaf476cbeb1f4b.zip |
xiao-rp2040: add pin definitions
Diffstat (limited to 'src/machine/board_xiao-rp2040.go')
-rw-r--r-- | src/machine/board_xiao-rp2040.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/machine/board_xiao-rp2040.go b/src/machine/board_xiao-rp2040.go index e5f911eb8..d66b73145 100644 --- a/src/machine/board_xiao-rp2040.go +++ b/src/machine/board_xiao-rp2040.go @@ -38,7 +38,10 @@ const ( // Onboard LEDs const ( - NEOPIXEL = GPIO12 + NEOPIXEL = GPIO12 + WS2812 = GPIO12 + NEO_PWR = GPIO11 + NEOPIXEL_POWER = GPIO11 LED = GPIO17 LED_RED = GPIO17 @@ -58,8 +61,8 @@ const ( // SPI pins const ( SPI0_SCK_PIN Pin = D8 - SPI0_SDO_PIN Pin = D9 - SPI0_SDI_PIN Pin = D10 + SPI0_SDO_PIN Pin = D10 + SPI0_SDI_PIN Pin = D9 SPI1_SCK_PIN Pin = NoPin SPI1_SDO_PIN Pin = NoPin |