From 430c5a163832eb0fa2d17a8ae25bb01ce112a2f0 Mon Sep 17 00:00:00 2001 From: thirdr Date: Thu, 21 Nov 2024 16:59:34 +0000 Subject: [PATCH] Examples: updated for kit compatibility --- micropython/examples/plasma_2350_w/cheerlights.py | 4 ++-- micropython/examples/plasma_2350_w/webpage.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/micropython/examples/plasma_2350_w/cheerlights.py b/micropython/examples/plasma_2350_w/cheerlights.py index 15ee921..ad2e4ff 100644 --- a/micropython/examples/plasma_2350_w/cheerlights.py +++ b/micropython/examples/plasma_2350_w/cheerlights.py @@ -5,7 +5,7 @@ import time import requests # Total number of LEDs on our LED strip -NUM_LEDS = 60 +NUM_LEDS = 66 # How long between cheerslight updates in seconds INTERVAL = 60 @@ -38,7 +38,7 @@ def connect(): # 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 connection to the network connect() diff --git a/micropython/examples/plasma_2350_w/webpage.py b/micropython/examples/plasma_2350_w/webpage.py index 9ea3f08..cf15bc0 100644 --- a/micropython/examples/plasma_2350_w/webpage.py +++ b/micropython/examples/plasma_2350_w/webpage.py @@ -23,13 +23,13 @@ except ValueError as e: print(e) # Total number of LEDs on our LED strip -NUM_LEDS = 60 +NUM_LEDS = 66 # APA102 / DotStarâ„¢ LEDs # led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK) # WS2812 / NeoPixelâ„¢ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma.plasma2040.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma.plasma2040.DAT, color_order=plasma.COLOR_ORDER_BGR) # Setup the RGB Led led = RGBLED(16, 17, 18)