Adafruit_CircuitPython_LED_Animation icon indicating copy to clipboard operation
Adafruit_CircuitPython_LED_Animation copied to clipboard

add_cycle_complete_receiver not supported for included animations

Open MauiJerry opened this issue 2 years ago • 0 comments

it seems only animations derived from ColorCycle currently support the callback used by sequence when they complete. I added this code `def onComplete(sequence): print("completed sequence", animations.current_animation, sequence)

animations.add_cycle_complete_receiver(onComplete) ` to the all-animations example, and it is invoked only when the CustomColorChase ends its cycle. outputting: "completed sequence <CustomColorChase: None> <AnimationSequence: None>"

MauiJerry avatar Jul 12 '22 20:07 MauiJerry