Merge pull request #180 from KMKfw/topic-rgb-animation
update RGB for more modern cpy versions
This commit is contained in:
commit
1b730cacf3
@ -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
|
||||
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user