Skip to content

Commit 42b1f49

Browse files
committed
add backlight actions
1 parent 0bf17c0 commit 42b1f49

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

code.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
(
4848
BT_TOGGLE,BT1,BT2, BT3,BT4,BT5,BT6,BT7, BT8, BT9, BT0, ___, ___, ___,
4949
RGB_MOD, ___, ___, ___, ___, ___,___,USB_TOGGLE,___,___,___,___,___, ___,
50-
___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___,
51-
___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___,
50+
RGB_TOGGLE,HUE_RGB,RGB_HUE,SAT_RGB,RGB_SAT,___,___,___,___,___,___,___, ___,
51+
___, ___, ___, ___, ___, ___, ___, ___,VAL_RGB,RGB_VAL, ___, ___,
5252
___, ___, ___, ___, ___, ___, ___, ___
5353
),
5454

@@ -110,4 +110,6 @@ def pairs_handler(dev, n):
110110
# Pairs: J & K, U & I
111111
keyboard.pairs = [{35, 36}, {20, 19}]
112112

113+
# keyboard.verbose = False
114+
113115
keyboard.run()

keyboard/model/m60.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,8 @@ def __init__(self):
168168
self.beacon,
169169
self.beacon2
170170
)
171-
self.mode = 6
172-
self.mode_function = self.modes[self.mode]
173-
self.dynamic = True
171+
self.set_mode(6)
172+
self.enabled = False
174173

175174
@property
176175
def hue(self):
@@ -322,7 +321,7 @@ def elapse(self):
322321
for i in self.keys.keys():
323322
t = self.keys[i]
324323
self.pixel(i, *wheel2(255 - t, t))
325-
t -= 1
324+
t -= 4
326325
if t <= 0:
327326
self.keys.pop(i)
328327
else:

0 commit comments

Comments
 (0)