8000 turn off all neopix when booting · syntheticfuture/circuitpython@3890271 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3890271

Browse files
committed
turn off all neopix when booting
1 parent 8f1c25c commit 3890271

File tree

1 file changed

+3
-0
lines changed
  • ports/raspberrypi/boards/adafruit_macropad_rp2040

1 file changed

+3
-0
lines changed

ports/raspberrypi/boards/adafruit_macropad_rp2040/board.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
#include "shared-bindings/microcontroller/Pin.h"
3030
#include "src/rp2_common/hardware_gpio/include/hardware/gpio.h"
31+
#include "supervisor/shared/board.h"
3132

3233
void board_init(void) {
3334
}
@@ -37,4 +38,6 @@ bool board_requests_safe_mode(void) {
3738
}
3839

3940
void reset_board(void) {
41+
// turn off any left over LED
42+
board_reset_user_neopixels(&pin_GPIO19, 12);
4043
}

0 commit comments

Comments
 (0)
0