kopia lustrzana https://github.com/pimoroni/pimoroni-pico
commit
11a7be85a9
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue