diff --git a/code.py b/code.py index ee344d9..5fbc2b9 100644 --- a/code.py +++ b/code.py @@ -38,12 +38,12 @@ buttons_gpio = { # name GPIO Keycode_1 Keycode_2(ALT mode) State DigitalIO (switch) "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), + "blue" : dict(gpio=board.GP16, keycode_1=Keycode.RIGHT_ARROW, keycode_2=Keycode.UP_ARROW, 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), + "yellow": dict(gpio=board.GP17, keycode_1=Keycode.LEFT_ARROW, keycode_2=Keycode.DOWN_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)), "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), + "fn_2": dict(gpio=board.GP14, keycode_1=Keycode.L, keycode_2=Keycode.F, state=False, DIO=None), } # GPIO setup diff --git a/lib/adafruit_hid/__init__.mpy b/lib/adafruit_hid/__init__.mpy index 458606e..36c0a31 100644 Binary files a/lib/adafruit_hid/__init__.mpy and b/lib/adafruit_hid/__init__.mpy differ diff --git a/lib/adafruit_hid/consumer_control.mpy b/lib/adafruit_hid/consumer_control.mpy index 6fecb4d..6c863ad 100644 Binary files a/lib/adafruit_hid/consumer_control.mpy and b/lib/adafruit_hid/consumer_control.mpy differ diff --git a/lib/adafruit_hid/consumer_control_code.mpy b/lib/adafruit_hid/consumer_control_code.mpy index 618edca..4706fd1 100644 Binary files a/lib/adafruit_hid/consumer_control_code.mpy and b/lib/adafruit_hid/consumer_control_code.mpy differ diff --git a/lib/adafruit_hid/keyboard.mpy b/lib/adafruit_hid/keyboard.mpy index a6b29de..6db90f4 100644 Binary files a/lib/adafruit_hid/keyboard.mpy and b/lib/adafruit_hid/keyboard.mpy differ diff --git a/lib/adafruit_hid/keyboard_layout_base.mpy b/lib/adafruit_hid/keyboard_layout_base.mpy index 56d387f..b2b8735 100644 Binary files a/lib/adafruit_hid/keyboard_layout_base.mpy and b/lib/adafruit_hid/keyboard_layout_base.mpy differ diff --git a/lib/adafruit_hid/keyboard_layout_us.mpy b/lib/adafruit_hid/keyboard_layout_us.mpy index 7b3398c..90951e9 100644 Binary files a/lib/adafruit_hid/keyboard_layout_us.mpy and b/lib/adafruit_hid/keyboard_layout_us.mpy differ diff --git a/lib/adafruit_hid/keycode.mpy b/lib/adafruit_hid/keycode.mpy index 8a5c631..4987997 100644 Binary files a/lib/adafruit_hid/keycode.mpy and b/lib/adafruit_hid/keycode.mpy differ diff --git a/lib/adafruit_hid/mouse.mpy b/lib/adafruit_hid/mouse.mpy index d664187..18ecdc7 100644 Binary files a/lib/adafruit_hid/mouse.mpy and b/lib/adafruit_hid/mouse.mpy differ diff --git a/readme.md b/readme.md index 66f5e4a..295fb04 100644 --- a/readme.md +++ b/readme.md @@ -10,7 +10,8 @@ Ce projet est le compagnon de [Stopi2](/arthus/stopi2). ## Installation -Copier le fichier 'code.py' et le répertoire 'lib' à la base du pico. +1. Installer [Circuit Python 9.x](https://circuitpython.org/board/raspberry_pi_pico/) sur le Rpi Pico +2. Copier le fichier 'code.py' et le répertoire 'lib' à la base du pico. ## Matériel nécessaire