Change keymap
This commit is contained in:
parent
1bf89da3e8
commit
516f50fc75
10
code.py
10
code.py
@ -38,11 +38,11 @@ keyboard_layout = KeyboardLayout(keyboard)
|
|||||||
# Change GPIOs according to HW
|
# Change GPIOs according to HW
|
||||||
buttons_gpio = {
|
buttons_gpio = {
|
||||||
# name GPIO Keycode State DigitalIO (switch)
|
# name GPIO Keycode State DigitalIO (switch)
|
||||||
"red" : dict(gpio=board.GP18, keycode=Keycode.G, state=False, DIO=None),
|
"red" : dict(gpio=board.GP18, keycode=Keycode.D, state=False, DIO=None),
|
||||||
"green" : dict(gpio=board.GP19, keycode=Keycode.H, state=False, DIO=None),
|
"green" : dict(gpio=board.GP19, keycode=Keycode.N, state=False, DIO=None),
|
||||||
"blue" : dict(gpio=board.GP16, keycode=Keycode.I, state=False, DIO=None),
|
"blue" : dict(gpio=board.GP16, keycode=Keycode.J, state=False, DIO=None),
|
||||||
"black" : dict(gpio=board.GP20, keycode=Keycode.J, state=False, DIO=None),
|
"black" : dict(gpio=board.GP20, keycode=Keycode.E, state=False, DIO=None),
|
||||||
"yellow": dict(gpio=board.GP17, keycode=Keycode.K, state=False, DIO=None),
|
"yellow": dict(gpio=board.GP17, keycode=Keycode.B, state=False, DIO=None),
|
||||||
"switch": dict(gpio=board.GP21, keycode=Keycode.LEFT_SHIFT, state=False, DIO=None, switch_setup=dict(gpio=board.GP7, DIO=None))
|
"switch": dict(gpio=board.GP21, keycode=Keycode.LEFT_SHIFT, state=False, DIO=None, switch_setup=dict(gpio=board.GP7, DIO=None))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user