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.
1 parent 6c51625 commit 0f8f539Copy full SHA for 0f8f539
adafruit_led_animation/animation.py
@@ -416,7 +416,7 @@ def draw(self):
416
self.pixel_object.fill((0, 0, 0))
417
for i in range(self._size):
418
n = (self._n + i) % self._repeat_width
419
- num = self._num_repeats + (1 if n < self._overflow else 0)
+ num = len(self.pixel_object[n::self._repeat_width])
420
self.pixel_object[n::self._repeat_width] = [self.group_color(n) for n in range(num)]
421
self._n = (self._n + self._direction) % self._repeat_width
422
self.show()
0 commit comments