Skip to content

Commit 86219c6

Browse files
committed
neopixel ring code update
neopixel ring code update
1 parent 6bad204 commit 86219c6

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

NeoPixel_Rings_Lamp/code.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
from adafruit_led_animation.animation.rainbowsparkle import RainbowSparkle
1010
from adafruit_led_animation.animation.rainbowcomet import RainbowComet
1111
from adafruit_led_animation.sequence import AnimationSequence
12-
from adafruit_led_animation.color import RED, PURPLE, AMBER, JADE
13-
from _pixelbuf import colorwheel
12+
from adafruit_led_animation.color import PURPLE
1413

1514
# Update this to match the number of NeoPixel LEDs connected to your board.
1615
num_pixels = 124
@@ -24,7 +23,13 @@
2423
pulse = Pulse(pixels, speed=.05, color=PURPLE, period=3)
2524

2625
animations = AnimationSequence(
27-
pulse, rainbow_sparkle, rainbow_comet, rainbow, advance_interval=5, auto_clear=True, random_order=False
26+
pulse,
27+
rainbow_sparkle,
28+
rainbow_comet,
29+
rainbow,
30+
advance_interval=5,
31+
auto_clear=True,
32+
random_order=False
2833
)
2934

3035
while True:

0 commit comments

Comments
 (0)