Examples: updated for kit compatibility

This commit is contained in:
thirdr 2024-11-21 16:59:34 +00:00
parent 441cdd892d
commit 430c5a1638
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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)