summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-02-19 10:50:50 +0700
committerhathach <[email protected]>2021-02-19 10:50:50 +0700
commitc245305f72d6a0e21a1ad4a3557b4a8485f77942 (patch)
treebe1cf83f3966698f900a94de0b492f703eb9f04d
parent1b849fc70a9dca3603b38828a3c37696efb1ebe0 (diff)
update adafruit rp2040 board define
-rw-r--r--hw/bsp/rp2040/boards/adafruit_feather_rp2040/board.h6
-rw-r--r--hw/bsp/rp2040/boards/adafruit_itsybitsy_rp2040/board.h4
-rw-r--r--hw/bsp/rp2040/boards/adafruit_qt_rp2040/board.h4
3 files changed, 13 insertions, 1 deletions
diff --git a/hw/bsp/rp2040/boards/adafruit_feather_rp2040/board.h b/hw/bsp/rp2040/boards/adafruit_feather_rp2040/board.h
index 417db3d5d..281b215d3 100644
--- a/hw/bsp/rp2040/boards/adafruit_feather_rp2040/board.h
+++ b/hw/bsp/rp2040/boards/adafruit_feather_rp2040/board.h
@@ -31,9 +31,13 @@
extern "C" {
#endif
-#define LED_PIN 14
+#define LED_PIN 13
#define LED_STATE_ON 1
+#define NEOPIXEL_PIN 16
+#define NEOPIXEL_POWER_PIN 17
+#define NEOPIXEL_POWER_STATE 1
+
// Button pin is BOOTSEL which is flash CS pin
#define BUTTON_BOOTSEL
#define BUTTON_STATE_ACTIVE 0
diff --git a/hw/bsp/rp2040/boards/adafruit_itsybitsy_rp2040/board.h b/hw/bsp/rp2040/boards/adafruit_itsybitsy_rp2040/board.h
index b45008fcc..72265176c 100644
--- a/hw/bsp/rp2040/boards/adafruit_itsybitsy_rp2040/board.h
+++ b/hw/bsp/rp2040/boards/adafruit_itsybitsy_rp2040/board.h
@@ -34,6 +34,10 @@
#define LED_PIN 11
#define LED_STATE_ON 1
+#define NEOPIXEL_PIN 17
+#define NEOPIXEL_POWER_PIN 16
+#define NEOPIXEL_POWER_STATE 1
+
// Button pin is BOOTSEL which is flash CS pin
#define BUTTON_BOOTSEL
#define BUTTON_STATE_ACTIVE 0
diff --git a/hw/bsp/rp2040/boards/adafruit_qt_rp2040/board.h b/hw/bsp/rp2040/boards/adafruit_qt_rp2040/board.h
index d3850a19e..c0915f704 100644
--- a/hw/bsp/rp2040/boards/adafruit_qt_rp2040/board.h
+++ b/hw/bsp/rp2040/boards/adafruit_qt_rp2040/board.h
@@ -35,6 +35,10 @@
#define LED_PIN 11
#define LED_STATE_ON 1
+#define NEOPIXEL_PIN 12
+#define NEOPIXEL_POWER_PIN 11
+#define NEOPIXEL_POWER_STATE 1
+
// Button pin is BOOTSEL which is flash CS pin
#define BUTTON_BOOTSEL
#define BUTTON_STATE_ACTIVE 0