diff options
author | sago35 <[email protected]> | 2024-04-15 09:20:56 +0900 |
---|---|---|
committer | Ron Evans <[email protected]> | 2024-04-24 08:50:53 +0200 |
commit | 797a5a203171316c45ff54fa40d6d6ecef59bb97 (patch) | |
tree | 9098e8ae35d1692cf13cb8f46a029c51a7387fa9 | |
parent | 3d433fe9f15dc6cff400ce7fd03cf15ad55f64fc (diff) | |
download | tinygo-797a5a203171316c45ff54fa40d6d6ecef59bb97.tar.gz tinygo-797a5a203171316c45ff54fa40d6d6ecef59bb97.zip |
machine/thingplus_rp2040, machine/waveshare-rp2040-zero:add WS2812 definition
-rw-r--r-- | src/machine/board_thingplus_rp2040.go | 6 | ||||
-rw-r--r-- | src/machine/board_waveshare-rp2040-zero.go | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/machine/board_thingplus_rp2040.go b/src/machine/board_thingplus_rp2040.go index 7f005412f..48292d261 100644 --- a/src/machine/board_thingplus_rp2040.go +++ b/src/machine/board_thingplus_rp2040.go @@ -46,7 +46,11 @@ const ( A3 = GPIO29 ) -const LED = GPIO25 +// Onboard LEDs +const ( + LED = GPIO25 + WS2812 = GPIO8 +) // I2C Pins. const ( diff --git a/src/machine/board_waveshare-rp2040-zero.go b/src/machine/board_waveshare-rp2040-zero.go index ea9223c15..00ddc53a5 100644 --- a/src/machine/board_waveshare-rp2040-zero.go +++ b/src/machine/board_waveshare-rp2040-zero.go @@ -52,6 +52,7 @@ const ( // Onboard LEDs const ( NEOPIXEL = GPIO16 + WS2812 = GPIO16 ) // I2C pins |