feat: add color formats to WS2812 driver (#5428)

This commit is contained in:
Raphael Coeffic
2024-08-14 10:03:06 +10:00
committed by GitHub
parent 3bdec2f347
commit 4c30b09c08
6 changed files with 31 additions and 11 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ void boardInit()
#if defined(LED_STRIP_GPIO)
extern const stm32_pulse_timer_t _led_timer;
ws2812_init(&_led_timer, LED_STRIP_LENGTH);
ws2812_init(&_led_timer, LED_STRIP_LENGTH, WS2812_GRB);
for (uint8_t i = 0; i < LED_STRIP_LENGTH; i++) {
ws2812_set_color(i, 0, 0, 50);
}