Examples: Corrected colour order to BGR for use with the Star LED kit

This commit is contained in:
thirdr 2024-11-25 15:15:44 +00:00
parent 7972b92cdf
commit 0125e21c6c
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ NUM_LEDS = 66
# led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK) # led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK)
# WS2812 / NeoPixel™ LEDs # WS2812 / NeoPixel™ LEDs
led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma2040.DAT) led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma2040.DAT, color_order=plasma.COLOR_ORDER_BGR)
# Start updating the LED strip # Start updating the LED strip
led_strip.start() led_strip.start()

View File

@ -8,7 +8,7 @@ NUM_LEDS = 66
# led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK) # led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK)
# WS2812 / NeoPixel™ LEDs # WS2812 / NeoPixel™ LEDs
led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma2040.DAT) led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma2040.DAT, color_order=plasma.COLOR_ORDER_BGR)
# Start updating the LED strip # Start updating the LED strip
led_strip.start() led_strip.start()