adafruit / adafruit/Adafruit_CircuitPython_LED_Animation
add_cycle_complete_receiver not supported for included animations
- 主要言語
- Python
- スター
- 62
- フォーク
- 46
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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 "
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- embedded-iot
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100