adafruit / adafruit/Adafruit_CircuitPython_LED_Animation

add_cycle_complete_receiver not supported for included animations

Ouverte
#96 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
62
Forks
46
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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 "

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start with the all-animations example and inspect how add_cycle_complete_receiver is handled for ColorCycle and CustomColorChase. Trace the completion callback through the animation sequence entry points, then verify that the callback runs when included animations complete their cycles, not only ColorCycle-derived animations.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
embedded-iot
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.