Upgrade circuit python, adafruit_hid to 9.x
This commit is contained in:
parent
2075766002
commit
6c1b6888ac
6
code.py
6
code.py
|
@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue