From 0125e21c6cef0acd77ccc762c8ea825434fb8f4b Mon Sep 17 00:00:00 2001 From: thirdr Date: Mon, 25 Nov 2024 15:15:44 +0000 Subject: [PATCH] Examples: Corrected colour order to BGR for use with the Star LED kit --- micropython/examples/plasma_2350/rainbow.py | 2 +- micropython/examples/plasma_2350/single_colour.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/micropython/examples/plasma_2350/rainbow.py b/micropython/examples/plasma_2350/rainbow.py index d517d3d..d1d7c11 100644 --- a/micropython/examples/plasma_2350/rainbow.py +++ b/micropython/examples/plasma_2350/rainbow.py @@ -9,7 +9,7 @@ NUM_LEDS = 66 # led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK) # 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 led_strip.start() diff --git a/micropython/examples/plasma_2350/single_colour.py b/micropython/examples/plasma_2350/single_colour.py index 47ca208..29c5339 100644 --- a/micropython/examples/plasma_2350/single_colour.py +++ b/micropython/examples/plasma_2350/single_colour.py @@ -8,7 +8,7 @@ NUM_LEDS = 66 # led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK) # 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 led_strip.start()