Update layers.md

The advanced example was missing a self argument
This commit is contained in:
hixan 2023-01-29 13:28:45 +11:00 committed by xs5871
parent 4d52afa086
commit 47c242a2c9

View File

@ -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)