@@ -276,7 +276,7 @@ def show(self):
276
276
self .current_animation .show ()
277
277
278
278
279
- class OneShot (AnimationSequence ):
279
+ class AnimateOnce (AnimationSequence ):
280
280
"""
281
281
Wrapper around AnimationSequence that returns False to animate() until a sequence has completed.
282
282
Takes the same arguments as AnimationSequence, but overrides
@@ -293,14 +293,14 @@ class OneShot(AnimationSequence):
293
293
from adafruit_led_animation.animation.comet import Comet
294
294
from adafruit_led_animation.animation.pulse import Pulse
295
295
from adafruit_led_animation.color import BLUE, RED
296
- from adafruit_led_animation.sequence import OneShot
296
+ from adafruit_led_animation.sequence import AnimateOnce
297
297
298
298
strip_pixels = neopixel.NeoPixel(board.A1, 30, brightness=0.5, auto_write=False)
299
299
300
300
comet = Comet(strip_pixels, 0.01, color=BLUE, bounce=False)
301
301
pulse = Pulse(strip_pixels, 0.01, color=RED, period=2)
302
302
303
- animations = OneShot (comet, pulse)
303
+ animations = AnimateOnce (comet, pulse)
304
304
305
305
while animations.animate():
306
306
pass
0 commit comments