From 2704432f7fe144960e210dc71fc005e5d23b202a Mon Sep 17 00:00:00 2001 From: "regicidal.plutophage" <36969337+regicidalplutophage@users.noreply.github.com> Date: Mon, 23 Oct 2023 01:38:56 +0300 Subject: [PATCH] Fix off() method in RGB (#903) * 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. --- kmk/extensions/rgb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kmk/extensions/rgb.py b/kmk/extensions/rgb.py index 071f68fc6..93054ef8d 100644 --- a/kmk/extensions/rgb.py +++ b/kmk/extensions/rgb.py @@ -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