Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change default colour order #538

Merged
merged 1 commit into from
Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/alternating-blinkies.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
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()
Expand Down
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/cheerlights.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/co2.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
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()
Expand Down
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/fire.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
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()
Expand Down
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/moon.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
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()
Expand Down
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/moon_rtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/pir.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/rainbows.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
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()
Expand Down
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/thermometer_bme280.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
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()
Expand Down
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/thermometer_pico.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
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()
Expand Down
2 changes: 1 addition & 1 deletion micropython/examples/plasma_stick/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def snow():
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()
Expand Down