Merge pull request #180 from KMKfw/topic-rgb-animation

update RGB for more modern cpy versions
This commit is contained in:
Josh Klar 2020-10-14 22:07:30 -07:00 committed by GitHub
commit 1b730cacf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -304,7 +304,7 @@ class KMKKeyboard:
if self.pixels and self.pixels.animation_mode:
self.pixels.loopcounter += 1
if self.pixels.loopcounter >= 7:
if self.pixels.loopcounter >= 30:
self.pixels = self.pixels.animate()
self.pixels.loopcounter = 0

View File

@ -457,7 +457,7 @@ class RGB:
return self
def effect_swirl(self):
self.increase_hue(self.animation_speed * 2)
self.increase_hue(self.animation_speed)
self.disable_auto_write = True # Turn off instantly showing
for i in range(0, self.num_pixels):
self.set_hsv(