Skip to content

Commit

Permalink
pico: set default "neopixel" rgb led (WS2812) value to off at init_led
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpasjuste committed Jan 5, 2024
1 parent deec004 commit e432a02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 32blit-pico/led.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void init_led() {
pio_sm = pio_claim_unused_sm(pio, true);
if(pio_sm > -1) {
ws2812_program_init(pio, pio_sm, pio_offset, LED_WS2812_PIN, 800000, true);
pio_sm_put_blocking(pio, 0, 0);
} else {
printf("LED_WS2812: could not find a free pio sm\r\n");
}
Expand Down

0 comments on commit e432a02

Please sign in to comment.