Update layers.md
The advanced example was missing a self argument
This commit is contained in:
parent
4d52afa086
commit
47c242a2c9
@ -84,7 +84,7 @@ 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)
|
||||
|
Loading…
Reference in New Issue
Block a user