Skip to content

Commit

Permalink
Fix off() method in RGB (#903)
Browse files Browse the repository at this point in the history
* Fix off() method in RGB

Since animate() method doesn't call self.show() when RGB is toggled off, it has to be called in the self.off() for the latter to produce desired effect.
  • Loading branch information
regicidalplutophage authored Oct 22, 2023
1 parent f8c6214 commit 2704432
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kmk/extensions/rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,8 @@ def off(self):
'''
self.set_hsv_fill(0, 0, 0)

self.show()

def show(self):
'''
Turns on all LEDs/Neopixels without changing stored values
Expand Down

0 comments on commit 2704432

Please sign in to comment.