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:
@@ -84,10 +84,10 @@ class Layers(_Layers):
|
|||||||
last_top_layer = 0
|
last_top_layer = 0
|
||||||
hues = (4, 20, 69)
|
hues = (4, 20, 69)
|
||||||
|
|
||||||
def after_hid_send(keyboard):
|
def after_hid_send(self, keyboard):
|
||||||
if keyboard.active_layers[0] != self.last_top_layer:
|
if keyboard.active_layers[0] != self.last_top_layer:
|
||||||
self.last_top_layer = keyboard.active_layers[0]
|
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())
|
keyboard.modules.append(Layers())
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user