Layer 0 hinzugfügt
This commit is contained in:
parent
01b1e0579a
commit
8489556ebc
1 changed files with 11 additions and 6 deletions
17
code/code.py
17
code/code.py
|
@ -28,6 +28,11 @@ consumer_control = ConsumerControl(usb_hid.devices)
|
|||
# Note that keys 0-3 are reserved as the modifier and layer selector keys
|
||||
# respectively.
|
||||
|
||||
layer_0 = {4: Keycode.COMMA,
|
||||
5: Keycode.ONE,
|
||||
9: Keycode.FOUR,
|
||||
7: Keycode.SEVEN}
|
||||
|
||||
layer_1 = {4: Keycode.COMMA,
|
||||
5: Keycode.ONE,
|
||||
6: Keycode.FOUR,
|
||||
|
@ -53,14 +58,13 @@ layer_3 = {6: ConsumerControlCode.VOLUME_DECREMENT,
|
|||
14: ConsumerControlCode.VOLUME_INCREMENT,
|
||||
15: ConsumerControlCode.SCAN_NEXT_TRACK}
|
||||
|
||||
layers = {1: layer_1,
|
||||
layers = {0: layer_0,
|
||||
1: layer_1,
|
||||
2: layer_2,
|
||||
3: layer_3}
|
||||
|
||||
# Define the modifier key and layer selector keys
|
||||
modifier = keys[0]
|
||||
|
||||
selectors = {1: keys[1],
|
||||
selectors = {0: keys[0],
|
||||
1: keys[1],
|
||||
2: keys[2],
|
||||
3: keys[3]}
|
||||
|
||||
|
@ -68,7 +72,8 @@ selectors = {1: keys[1],
|
|||
current_layer = 3
|
||||
|
||||
# The colours for each layer
|
||||
colours = {1: (255, 0, 255),
|
||||
colours = {0: (255, 255, 255),
|
||||
1: (255, 0, 255),
|
||||
2: (0, 255, 255),
|
||||
3: (255, 255, 0)}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue