From 3c01aadd3bf951c4fd9e218e1d8d3d51ef24f663 Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Fri, 1 Nov 2024 09:23:55 +0100 Subject: [PATCH] Add fn buttons, remove escape key binding --- code.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code.py b/code.py index 4f05e3c..ee344d9 100644 --- a/code.py +++ b/code.py @@ -39,9 +39,11 @@ buttons_gpio = { "red" : dict(gpio=board.GP18, keycode_1=Keycode.DELETE, keycode_2=Keycode.E, state=False, DIO=None), "green" : dict(gpio=board.GP19, keycode_1=Keycode.SPACEBAR, keycode_2=Keycode.RETURN, state=False, DIO=None), "blue" : dict(gpio=board.GP16, keycode_1=Keycode.RIGHT_ARROW, keycode_2=Keycode.DOWN_ARROW,state=False, DIO=None), - "black" : dict(gpio=board.GP20, keycode_1=Keycode.ESCAPE, keycode_2=Keycode.R, state=False, DIO=None), + "black" : dict(gpio=board.GP20, keycode_1=Keycode.O, keycode_2=Keycode.R, state=False, DIO=None), "yellow": dict(gpio=board.GP17, keycode_1=Keycode.LEFT_ARROW, keycode_2=Keycode.UP_ARROW, state=False, DIO=None), - "switch": dict(gpio=board.GP21, keycode_1=None, keycode_2=None, state=False, DIO=None, switch_setup=dict(gpio=board.GP7, state=False, DIO=None)) + "switch": dict(gpio=board.GP21, keycode_1=None, keycode_2=None, state=False, DIO=None, switch_setup=dict(gpio=board.GP7, state=False, DIO=None)), + "fn_1": dict(gpio=board.GP15, keycode_1=Keycode.W, keycode_2=Keycode.X, state=False, DIO=None), + "fn_2": dict(gpio=board.GP14, keycode_1=Keycode.F, keycode_2=Keycode.F, state=False, DIO=None), } # GPIO setup