Skip to content

Commit 528ffd3

Browse files
Match latest Adafruit LED Animation library
This update fixes the code to work with the latest version of the Adafruit CircuitPython LED Animation library as the library has been split up from a single file into separate files and classes which now need to be imported differently.
1 parent a2fbbdd commit 528ffd3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ItsyBitsy_Infinity_Cube/code.py

Lines changed: 4 additions & 2 deletions
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

0 commit comments

Comments
 (0)