File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 47
47
__version__ = "0.0.0-auto.0"
48
48
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation.git"
49
49
50
+ from adafruit_led_animation .animation import Animation
51
+
50
52
51
53
class AnimationGroup :
52
54
"""
@@ -158,7 +160,14 @@ def animate(self, show=True):
158
160
if self ._sync :
159
161
result = self ._members [0 ].animate (show = False )
160
162
if result and show :
161
- 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 ()
162
171
return result
163
172
164
173
return any ([item .animate (show ) for item in self ._members ])
You can’t perform that action at this time.
0 commit comments