Merge pull request #25 from pimoroni/examples/patch-for-kit

Examples: Corrected 'NUM_LEDS' to match our kit
This commit is contained in:
Ryan 2024-11-25 15:21:14 +00:00 committed by GitHub
commit 4358213dda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -3,13 +3,13 @@ from plasma import plasma2040
import time
# Set how many LEDs you have
NUM_LEDS = 50
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, plasma2040.DAT)
led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma2040.DAT, color_order=plasma.COLOR_ORDER_BGR)
# Start updating the LED strip
led_strip.start()

View File

@ -2,13 +2,13 @@ import plasma
from plasma import plasma2040
# Set how many LEDs you have
NUM_LEDS = 50
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, plasma2040.DAT)
led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma2040.DAT, color_order=plasma.COLOR_ORDER_BGR)
# Start updating the LED strip
led_strip.start()