From b1f6b009978868726a6f61b32b4a6cb3aa4540aa Mon Sep 17 00:00:00 2001 From: Hel Gibbons Date: Wed, 19 Oct 2022 16:31:36 +0100 Subject: [PATCH] change default colour order --- micropython/examples/plasma_stick/alternating-blinkies.py | 2 +- micropython/examples/plasma_stick/cheerlights.py | 2 +- micropython/examples/plasma_stick/co2.py | 2 +- micropython/examples/plasma_stick/encoder.py | 2 +- micropython/examples/plasma_stick/fire.py | 2 +- micropython/examples/plasma_stick/moon.py | 2 +- micropython/examples/plasma_stick/moon_rtc.py | 2 +- micropython/examples/plasma_stick/pir.py | 2 +- micropython/examples/plasma_stick/rainbows.py | 2 +- micropython/examples/plasma_stick/thermometer_bme280.py | 2 +- micropython/examples/plasma_stick/thermometer_pico.py | 2 +- micropython/examples/plasma_stick/weather.py | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/micropython/examples/plasma_stick/alternating-blinkies.py b/micropython/examples/plasma_stick/alternating-blinkies.py index 3733045e..c1c91555 100644 --- a/micropython/examples/plasma_stick/alternating-blinkies.py +++ b/micropython/examples/plasma_stick/alternating-blinkies.py @@ -20,7 +20,7 @@ BRIGHTNESS = 0.5 SPEED = 1 # WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # Start updating the LED strip led_strip.start() diff --git a/micropython/examples/plasma_stick/cheerlights.py b/micropython/examples/plasma_stick/cheerlights.py index 70fcb47d..5d3222e6 100644 --- a/micropython/examples/plasma_stick/cheerlights.py +++ b/micropython/examples/plasma_stick/cheerlights.py @@ -75,7 +75,7 @@ def hex_to_rgb(hex): pico_led = Pin('LED', Pin.OUT) # set up the WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # start updating the LED strip led_strip.start() diff --git a/micropython/examples/plasma_stick/co2.py b/micropython/examples/plasma_stick/co2.py index 2e82f419..6dc1076b 100644 --- a/micropython/examples/plasma_stick/co2.py +++ b/micropython/examples/plasma_stick/co2.py @@ -25,7 +25,7 @@ HUE_START = 100 # green HUE_END = 0 # red # WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # Start updating the LED strip led_strip.start() diff --git a/micropython/examples/plasma_stick/encoder.py b/micropython/examples/plasma_stick/encoder.py index a03f31ff..383f6292 100644 --- a/micropython/examples/plasma_stick/encoder.py +++ b/micropython/examples/plasma_stick/encoder.py @@ -56,7 +56,7 @@ def count_changed(count): # WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # Start updating the LED strip led_strip.start() diff --git a/micropython/examples/plasma_stick/fire.py b/micropython/examples/plasma_stick/fire.py index 69c6ffe4..03460d1f 100644 --- a/micropython/examples/plasma_stick/fire.py +++ b/micropython/examples/plasma_stick/fire.py @@ -11,7 +11,7 @@ A basic fire effect. NUM_LEDS = 50 # WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # Start updating the LED strip led_strip.start() diff --git a/micropython/examples/plasma_stick/moon.py b/micropython/examples/plasma_stick/moon.py index df3b5beb..164df310 100644 --- a/micropython/examples/plasma_stick/moon.py +++ b/micropython/examples/plasma_stick/moon.py @@ -23,7 +23,7 @@ SATURATION = 0.2 # increase this for a more colourful moon (max 1.0) COUNT_FROM = 14400 # set up the WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # start updating the LED strip led_strip.start() diff --git a/micropython/examples/plasma_stick/moon_rtc.py b/micropython/examples/plasma_stick/moon_rtc.py index b49d4cf2..1ea033e0 100644 --- a/micropython/examples/plasma_stick/moon_rtc.py +++ b/micropython/examples/plasma_stick/moon_rtc.py @@ -47,7 +47,7 @@ def set_pico_time(): # set up the WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # start updating the LED strip led_strip.start() diff --git a/micropython/examples/plasma_stick/pir.py b/micropython/examples/plasma_stick/pir.py index 24254ae5..2fd6d490 100644 --- a/micropython/examples/plasma_stick/pir.py +++ b/micropython/examples/plasma_stick/pir.py @@ -70,7 +70,7 @@ def all_on(): # set up the hardware # WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # the pin the signal line of our PIR sensor is connected to # if you're using one of our qw/st > DuPont cables the blue wire is SDA (GP4) and the yellow wire is SCL (GP5) diff --git a/micropython/examples/plasma_stick/rainbows.py b/micropython/examples/plasma_stick/rainbows.py index 82207387..5c0b5ea9 100644 --- a/micropython/examples/plasma_stick/rainbows.py +++ b/micropython/examples/plasma_stick/rainbows.py @@ -16,7 +16,7 @@ SPEED = 20 UPDATES = 60 # WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # Start updating the LED strip led_strip.start() diff --git a/micropython/examples/plasma_stick/thermometer_bme280.py b/micropython/examples/plasma_stick/thermometer_bme280.py index ff2f6043..69df4b1f 100644 --- a/micropython/examples/plasma_stick/thermometer_bme280.py +++ b/micropython/examples/plasma_stick/thermometer_bme280.py @@ -25,7 +25,7 @@ HUE_START = 230 # blue HUE_END = 359 # red # WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # Start updating the LED strip led_strip.start() diff --git a/micropython/examples/plasma_stick/thermometer_pico.py b/micropython/examples/plasma_stick/thermometer_pico.py index 1d2765b8..7ae16cf3 100644 --- a/micropython/examples/plasma_stick/thermometer_pico.py +++ b/micropython/examples/plasma_stick/thermometer_pico.py @@ -23,7 +23,7 @@ HUE_START = 230 # blue HUE_END = 359 # red # WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # Start updating the LED strip led_strip.start() diff --git a/micropython/examples/plasma_stick/weather.py b/micropython/examples/plasma_stick/weather.py index 00df89de..bb3667f5 100644 --- a/micropython/examples/plasma_stick/weather.py +++ b/micropython/examples/plasma_stick/weather.py @@ -224,7 +224,7 @@ target_leds = [[0] * 3 for i in range(NUM_LEDS)] pico_led = Pin('LED', Pin.OUT) # set up the WS2812 / NeoPixel™ LEDs -led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT) +led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma_stick.DAT, color_order=plasma.COLOR_ORDER_RGB) # start updating the LED strip led_strip.start()