Examples: updated for kit compatibility
This commit is contained in:
parent
441cdd892d
commit
430c5a1638
@ -5,7 +5,7 @@ import time
|
||||
import requests
|
||||
|
||||
# Total number of LEDs on our LED strip
|
||||
NUM_LEDS = 60
|
||||
NUM_LEDS = 66
|
||||
|
||||
# How long between cheerslight updates in seconds
|
||||
INTERVAL = 60
|
||||
@ -38,7 +38,7 @@ def connect():
|
||||
# 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 connection to the network
|
||||
connect()
|
||||
|
||||
@ -23,13 +23,13 @@ except ValueError as e:
|
||||
print(e)
|
||||
|
||||
# Total number of LEDs on our LED strip
|
||||
NUM_LEDS = 60
|
||||
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, plasma.plasma2040.DAT)
|
||||
led_strip = plasma.WS2812(NUM_LEDS, 0, 0, plasma.plasma2040.DAT, color_order=plasma.COLOR_ORDER_BGR)
|
||||
|
||||
# Setup the RGB Led
|
||||
led = RGBLED(16, 17, 18)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user