Skip to content

Commit 7628f33

Browse files
committed
Rename to AnimateOnce
1 parent 9dd6bf8 commit 7628f33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adafruit_led_animation/sequence.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def show(self):
276276
self.current_animation.show()
277277

278278

279-
class OneShot(AnimationSequence):
279+
class AnimateOnce(AnimationSequence):
280280
"""
281281
Wrapper around AnimationSequence that returns False to animate() until a sequence has completed.
282282
Takes the same arguments as AnimationSequence, but overrides
@@ -293,14 +293,14 @@ class OneShot(AnimationSequence):
293293
from adafruit_led_animation.animation.comet import Comet
294294
from adafruit_led_animation.animation.pulse import Pulse
295295
from adafruit_led_animation.color import BLUE, RED
296-
from adafruit_led_animation.sequence import OneShot
296+
from adafruit_led_animation.sequence import AnimateOnce
297297
298298
strip_pixels = neopixel.NeoPixel(board.A1, 30, brightness=0.5, auto_write=False)
299299
300300
comet = Comet(strip_pixels, 0.01, color=BLUE, bounce=False)
301301
pulse = Pulse(strip_pixels, 0.01, color=RED, period=2)
302302
303-
animations = OneShot(comet, pulse)
303+
animations = AnimateOnce(comet, pulse)
304304
305305
while animations.animate():
306306
pass

0 commit comments

Comments
 (0)