Update layers.md

L87 to L90

1)the function declaration was missing the self argument, so added it.

2)i changed the color changing method call to just changing the hue parameter of the rgb object
This commit is contained in:
P C Sivan Sriman 2022-12-29 18:52:12 +05:30 committed by GitHub
parent 7c3d2752bf
commit 6b7848ccfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,10 +84,10 @@ class Layers(_Layers):
last_top_layer = 0
hues = (4, 20, 69)
def after_hid_send(keyboard):
def after_hid_send(self, keyboard):
if keyboard.active_layers[0] != self.last_top_layer:
self.last_top_layer = keyboard.active_layers[0]
rgb.set_hsv_fill(self.hues[self.last_top_layer], 255, 255)
rgb.hue = self.last_top_layer
keyboard.modules.append(Layers())
```