Upgrade circuit python, adafruit_hid to 9.x

This commit is contained in:
ABelliqueux 2024-11-19 12:21:14 +01:00
parent 2075766002
commit 6c1b6888ac
10 changed files with 5 additions and 4 deletions

View File

@ -38,12 +38,12 @@ buttons_gpio = {
# name GPIO Keycode_1 Keycode_2(ALT mode) State DigitalIO (switch) # 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), "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), "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), "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)), "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_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 # GPIO setup

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -10,7 +10,8 @@ Ce projet est le compagnon de [Stopi2](/arthus/stopi2).
## Installation ## 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 ## Matériel nécessaire