We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22b9ec8 + cda2145 commit 67ccb54Copy full SHA for 67ccb54
adafruit_led_animation/group.py
@@ -47,6 +47,8 @@
47
__version__ = "0.0.0-auto.0"
48
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation.git"
49
50
+from adafruit_led_animation.animation import Animation
51
+
52
53
class AnimationGroup:
54
"""
@@ -158,7 +160,14 @@ def animate(self, show=True):
158
160
if self._sync:
159
161
result = self._members[0].animate(show=False)
162
if result and show:
- self._members[0].show()
163
+ last_strip = None
164
+ for member in self._members:
165
+ if isinstance(member, Animation):
166
+ if last_strip != member.pixel_object:
167
+ member.pixel_object.show()
168
+ last_strip = member.pixel_object
169
+ else:
170
+ member.show()
171
return result
172
173
return any([item.animate(show) for item in self._members])
0 commit comments