From b406b814162462efb7f8dffc69a8dce42b43dd1a Mon Sep 17 00:00:00 2001 From: sago35 Date: Mon, 7 Jun 2021 22:07:15 +0900 Subject: [PATCH] machine: add definition for ws2812 --- src/machine/board_circuitplay_bluefruit.go | 1 + src/machine/board_circuitplay_express.go | 1 + src/machine/board_clue_alpha.go | 1 + src/machine/board_feather-m4-can.go | 1 + src/machine/board_feather-m4.go | 3 ++- src/machine/board_feather-nrf52840.go | 1 + src/machine/board_feather-stm32f405.go | 1 + src/machine/board_grandcentral-m4.go | 1 + src/machine/board_matrixportal-m4.go | 1 + src/machine/board_metro-m4-airlift.go | 3 ++- src/machine/board_pybadge.go | 1 + src/machine/board_pygamer.go | 1 + src/machine/board_pyportal.go | 1 + src/machine/board_qtpy.go | 1 + 14 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/machine/board_circuitplay_bluefruit.go b/src/machine/board_circuitplay_bluefruit.go index ccb2e3c1..96767249 100644 --- a/src/machine/board_circuitplay_bluefruit.go +++ b/src/machine/board_circuitplay_bluefruit.go @@ -38,6 +38,7 @@ const ( const ( LED = D13 NEOPIXELS = D8 + WS2812 = D8 BUTTONA = D4 BUTTONB = D5 diff --git a/src/machine/board_circuitplay_express.go b/src/machine/board_circuitplay_express.go index be990471..ad49c24b 100644 --- a/src/machine/board_circuitplay_express.go +++ b/src/machine/board_circuitplay_express.go @@ -41,6 +41,7 @@ const ( const ( LED = D13 NEOPIXELS = D8 + WS2812 = D8 BUTTONA = D4 BUTTONB = D5 diff --git a/src/machine/board_clue_alpha.go b/src/machine/board_clue_alpha.go index 89f82056..b421dccc 100644 --- a/src/machine/board_clue_alpha.go +++ b/src/machine/board_clue_alpha.go @@ -72,6 +72,7 @@ const ( LED1 = LED LED2 = D43 NEOPIXEL = D18 + WS2812 = D18 BUTTON_LEFT = D5 BUTTON_RIGHT = D11 diff --git a/src/machine/board_feather-m4-can.go b/src/machine/board_feather-m4-can.go index d5750f96..7911f556 100644 --- a/src/machine/board_feather-m4-can.go +++ b/src/machine/board_feather-m4-can.go @@ -44,6 +44,7 @@ const ( const ( LED = D13 NEOPIXELS = D8 + WS2812 = D8 ) var Serial = USB diff --git a/src/machine/board_feather-m4.go b/src/machine/board_feather-m4.go index 251da721..39419136 100644 --- a/src/machine/board_feather-m4.go +++ b/src/machine/board_feather-m4.go @@ -36,7 +36,8 @@ const ( ) const ( - LED = D13 + LED = D13 + WS2812 = D8 ) var Serial = USB diff --git a/src/machine/board_feather-nrf52840.go b/src/machine/board_feather-nrf52840.go index 2c6e8465..641a9de8 100644 --- a/src/machine/board_feather-nrf52840.go +++ b/src/machine/board_feather-nrf52840.go @@ -59,6 +59,7 @@ const ( LED1 = LED LED2 = D4 NEOPIXEL = D8 + WS2812 = D8 BUTTON = D7 QSPI_SCK = D27 diff --git a/src/machine/board_feather-stm32f405.go b/src/machine/board_feather-stm32f405.go index e5e8d4b7..4bf1744b 100644 --- a/src/machine/board_feather-stm32f405.go +++ b/src/machine/board_feather-stm32f405.go @@ -84,6 +84,7 @@ const ( LED_NEOPIXEL = D8 LED_BUILTIN = LED_RED LED = LED_BUILTIN + WS2812 = D8 ) func initLED() {} diff --git a/src/machine/board_grandcentral-m4.go b/src/machine/board_grandcentral-m4.go index 6d42034d..014eda80 100644 --- a/src/machine/board_grandcentral-m4.go +++ b/src/machine/board_grandcentral-m4.go @@ -139,6 +139,7 @@ const ( LED_RX = UART_RX_LED_PIN LED_TX = UART_TX_LED_PIN NEOPIXEL = NEOPIXEL_PIN + WS2812 = NEOPIXEL_PIN ) var Serial = USB diff --git a/src/machine/board_matrixportal-m4.go b/src/machine/board_matrixportal-m4.go index 14d0cda5..9236e62d 100644 --- a/src/machine/board_matrixportal-m4.go +++ b/src/machine/board_matrixportal-m4.go @@ -75,6 +75,7 @@ const ( const ( LED = D13 NEOPIXEL = D4 + WS2812 = D4 ) // Button pins diff --git a/src/machine/board_metro-m4-airlift.go b/src/machine/board_metro-m4-airlift.go index 5665a081..276defa9 100644 --- a/src/machine/board_metro-m4-airlift.go +++ b/src/machine/board_metro-m4-airlift.go @@ -37,7 +37,8 @@ const ( ) const ( - LED = D13 + LED = D13 + WS2812 = D40 ) var Serial = USB diff --git a/src/machine/board_pybadge.go b/src/machine/board_pybadge.go index 687d933b..3ff24a16 100644 --- a/src/machine/board_pybadge.go +++ b/src/machine/board_pybadge.go @@ -40,6 +40,7 @@ const ( const ( LED = D13 NEOPIXELS = D8 + WS2812 = D8 LIGHTSENSOR = A7 diff --git a/src/machine/board_pygamer.go b/src/machine/board_pygamer.go index e12eed9e..890c3d3d 100644 --- a/src/machine/board_pygamer.go +++ b/src/machine/board_pygamer.go @@ -42,6 +42,7 @@ const ( const ( LED = D13 NEOPIXELS = D8 + WS2812 = D8 SD_CS = D7 diff --git a/src/machine/board_pyportal.go b/src/machine/board_pyportal.go index c2ffb386..7e28de44 100644 --- a/src/machine/board_pyportal.go +++ b/src/machine/board_pyportal.go @@ -68,6 +68,7 @@ const ( TFT_WR = D26 NEOPIXEL = D2 + WS2812 = D2 SPK_SD = D50 ) diff --git a/src/machine/board_qtpy.go b/src/machine/board_qtpy.go index b17e8070..5f58b8b0 100644 --- a/src/machine/board_qtpy.go +++ b/src/machine/board_qtpy.go @@ -43,6 +43,7 @@ const ( const ( NEOPIXELS = D11 + WS2812 = D11 NEOPIXELS_POWER = D12 )