Beispiel Strings
This commit is contained in:
parent
44fa22b0ca
commit
20ffff4db4
1 changed files with 7 additions and 3 deletions
10
code/code.py
10
code/code.py
|
@ -43,7 +43,8 @@ layer_1 = {4: Keycode.PERIOD,
|
|||
14: Keycode.SIX,
|
||||
15: Keycode.NINE}
|
||||
|
||||
layer_2 = {}
|
||||
layer_2 = {4: "Mit freundlichen Gruessen\nMichael Grote "
|
||||
}
|
||||
|
||||
layer_3 = {5: ConsumerControlCode.VOLUME_DECREMENT,
|
||||
7: ConsumerControlCode.SCAN_PREVIOUS_TRACK,
|
||||
|
@ -121,13 +122,16 @@ while True:
|
|||
fired = True
|
||||
|
||||
# Send the right sort of key press and set debounce for each
|
||||
# für text senden langen debounce einstellen
|
||||
if current_layer == 0:
|
||||
keyboard.send(key_press)
|
||||
elif current_layer == 1:
|
||||
keyboard.send(key_press)
|
||||
# sendet strings
|
||||
# deswegen längerer debounce
|
||||
elif current_layer == 2:
|
||||
keyboard.send(key_press)
|
||||
debounce = long_debounce
|
||||
layout.write(key_press)
|
||||
# sendet hid_keycodes.. mute usw.
|
||||
elif current_layer == 3:
|
||||
consumer_control.send(key_press)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue