From 7972b92cdfe00e41c360304ffe35af71895b49f9 Mon Sep 17 00:00:00 2001 From: thirdr Date: Mon, 25 Nov 2024 15:09:18 +0000 Subject: [PATCH 1/2] Examples: Corrected 'NUM_LEDS' to match our 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 83f9eea..d517d3d 100644 --- a/micropython/examples/plasma_2350/rainbow.py +++ b/micropython/examples/plasma_2350/rainbow.py @@ -3,7 +3,7 @@ from plasma import plasma2040 import time # Set how many LEDs you have -NUM_LEDS = 50 +NUM_LEDS = 66 # APA102 / DotStar™ LEDs # led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK) diff --git a/micropython/examples/plasma_2350/single_colour.py b/micropython/examples/plasma_2350/single_colour.py index 0566c99..47ca208 100644 --- a/micropython/examples/plasma_2350/single_colour.py +++ b/micropython/examples/plasma_2350/single_colour.py @@ -2,7 +2,7 @@ import plasma from plasma import plasma2040 # Set how many LEDs you have -NUM_LEDS = 50 +NUM_LEDS = 66 # APA102 / DotStar™ LEDs # led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK) From 0125e21c6cef0acd77ccc762c8ea825434fb8f4b Mon Sep 17 00:00:00 2001 From: thirdr Date: Mon, 25 Nov 2024 15:15:44 +0000 Subject: [PATCH 2/2] 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()