Merge pull request #25 from pimoroni/examples/patch-for-kit
Examples: Corrected 'NUM_LEDS' to match our kit
This commit is contained in:
commit
4358213dda
@ -3,13 +3,13 @@ from plasma import plasma2040
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
# Set how many LEDs you have
|
# Set how many LEDs you have
|
||||||
NUM_LEDS = 50
|
NUM_LEDS = 66
|
||||||
|
|
||||||
# APA102 / DotStar™ LEDs
|
# APA102 / DotStar™ LEDs
|
||||||
# led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK)
|
# led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK)
|
||||||
|
|
||||||
# WS2812 / NeoPixel™ LEDs
|
# 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
|
# Start updating the LED strip
|
||||||
led_strip.start()
|
led_strip.start()
|
||||||
|
|||||||
@ -2,13 +2,13 @@ import plasma
|
|||||||
from plasma import plasma2040
|
from plasma import plasma2040
|
||||||
|
|
||||||
# Set how many LEDs you have
|
# Set how many LEDs you have
|
||||||
NUM_LEDS = 50
|
NUM_LEDS = 66
|
||||||
|
|
||||||
# APA102 / DotStar™ LEDs
|
# APA102 / DotStar™ LEDs
|
||||||
# led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK)
|
# led_strip = plasma.APA102(NUM_LEDS, 0, 0, plasma2040.DAT, plasma2040.CLK)
|
||||||
|
|
||||||
# WS2812 / NeoPixel™ LEDs
|
# 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
|
# Start updating the LED strip
|
||||||
led_strip.start()
|
led_strip.start()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user