update RGB for more modern cpy versions
This commit is contained in:
parent
026308bbeb
commit
6e10babfbe
@ -330,7 +330,7 @@ class KMKKeyboard:
|
|||||||
|
|
||||||
if self.pixels and self.pixels.animation_mode:
|
if self.pixels and self.pixels.animation_mode:
|
||||||
self.pixels.loopcounter += 1
|
self.pixels.loopcounter += 1
|
||||||
if self.pixels.loopcounter >= 7:
|
if self.pixels.loopcounter >= 30:
|
||||||
self.pixels = self.pixels.animate()
|
self.pixels = self.pixels.animate()
|
||||||
self.pixels.loopcounter = 0
|
self.pixels.loopcounter = 0
|
||||||
|
|
||||||
|
@ -457,7 +457,7 @@ class RGB:
|
|||||||
return self
|
return self
|
||||||
|
|
||||||
def effect_swirl(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
|
self.disable_auto_write = True # Turn off instantly showing
|
||||||
for i in range(0, self.num_pixels):
|
for i in range(0, self.num_pixels):
|
||||||
self.set_hsv(
|
self.set_hsv(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user