From bc0f8ac55d6275aebe97c9cd92123ae86f052dfd Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 28 Jul 2021 14:17:31 -0700 Subject: [PATCH 1/2] Use all four LEDs for status on MagTag Fixes #5051 --- .../esp32s2/boards/adafruit_magtag_2.9_grayscale/mpconfigboard.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/esp32s2/boards/adafruit_magtag_2.9_grayscale/mpconfigboard.h b/ports/esp32s2/boards/adafruit_magtag_2.9_grayscale/mpconfigboard.h index d0d1864993..343bb525f1 100644 --- a/ports/esp32s2/boards/adafruit_magtag_2.9_grayscale/mpconfigboard.h +++ b/ports/esp32s2/boards/adafruit_magtag_2.9_grayscale/mpconfigboard.h @@ -32,6 +32,7 @@ #define MICROPY_HW_NEOPIXEL (&pin_GPIO1) #define CIRCUITPY_STATUS_LED_POWER (&pin_GPIO21) #define CIRCUITPY_STATUS_LED_POWER_INVERTED (1) +#define MICROPY_HW_NEOPIXEL_COUNT (4) #define CIRCUITPY_BOOT_BUTTON (&pin_GPIO0) From d5cdceb9b9fa06ba96fe69f7de1e67181a9682c6 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Wed, 28 Jul 2021 14:25:21 -0700 Subject: [PATCH 2/2] Use all 4 status pixels on neotrinkey too --- ports/atmel-samd/boards/neopixel_trinkey_m0/mpconfigboard.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/atmel-samd/boards/neopixel_trinkey_m0/mpconfigboard.h b/ports/atmel-samd/boards/neopixel_trinkey_m0/mpconfigboard.h index 7a923ead11..1eb6fbf3e6 100644 --- a/ports/atmel-samd/boards/neopixel_trinkey_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/neopixel_trinkey_m0/mpconfigboard.h @@ -2,6 +2,7 @@ #define MICROPY_HW_MCU_NAME "samd21e18" #define MICROPY_HW_NEOPIXEL (&pin_PA05) +#define MICROPY_HW_NEOPIXEL_COUNT (4) #define IGNORE_PIN_PA00 1 #define IGNORE_PIN_PA01 1