Skip to content

Commit 990bf08

Browse files
authored
Update code.py
Fixed the import statements so there's no error. Changed the pixel number to 44 as called for in the project.
1 parent e615f84 commit 990bf08

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ItsyBitsy_Infinity_Mirror/code.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
import board
66
import neopixel
7-
from adafruit_led_animation.animation import Comet, Sparkle, AnimationGroup,\
8-
AnimationSequence
7+
from adafruit_led_animation.animation.comet import Comet
8+
from adafruit_led_animation.animation.sparkle import Sparkle
9+
from adafruit_led_animation.group import AnimationGroup
10+
from adafruit_led_animation.sequence import AnimationSequence
911
import adafruit_led_animation.color as color
1012

1113
from adafruit_ble import BLERadio
@@ -18,7 +20,7 @@
1820

1921
# The number of NeoPixels in the externally attached strip
2022
# If using two strips connected to the same pin, count only one strip for this number!
21-
STRIP_PIXEL_NUMBER = 43
23+
STRIP_PIXEL_NUMBER = 44
2224

2325
# Setup for comet animation
2426
COMET_SPEED = 0.05 # Lower numbers increase the animation speed

0 commit comments

Comments
 (0)