Skip to content

Commit

Permalink
Examples: updated for kit compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
thirdr committed Nov 21, 2024
1 parent 72885a1 commit e7058b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions micropython/examples/plasma_2350_w/cheerlights.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions micropython/examples/plasma_2350_w/webpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
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)
Expand Down

0 comments on commit e7058b2

Please sign in to comment.