@@ -16,36 +16,43 @@ https://www.neradoc.me/layouts/
1616
1717## Now you have a zip file
1818
19- #### Find your language/layout in the lib directory
19+ ### Find your language/layout in the lib directory
2020
2121For a language ` LANG ` , copy the following files from the zip's ` lib ` folder to the ` lib ` folder of the board.
2222* DO NOT* change the names or extensions of the files. Just pick the right ones.
23- Replace LANG with the letters for your language of choice.
23+ Replace ` LANG ` with the letters for your language of choice.
2424
2525- ` keyboard_layout.py `
2626- ` keyboard_layout_win_LANG.py `
2727- ` keycode_win_LANG.py `
2828
29- #### Modify the pico-ducky code to use your language file:
29+ Don't forget to get [ the adafruit_hid library ] ( https://github.com/adafruit/Adafruit_CircuitPython_HID/releases/latest ) .
3030
31- At the start of the file replace:
31+ This is what it should look like ** if your language is French for example** .
32+
33+ ![ CIRCUITPY drive screenshot] ( docs/drive_pico_ducky.png )
34+
35+ ### Modify the pico-ducky code to use your language file:
36+
37+ At the start of the file replace these lines:
3238
3339``` py
3440from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
3541from adafruit_hid.keycode import Keycode
3642```
3743
38- With this. Change ` LANG ` for you language, so the module names match the files without the extension.
44+ With this lines:
45+ * Replace ` LANG ` with the letters for your language of choice. The name must match the file (without the py or mpy extension).*
3946``` py
4047from keyboard_layout_win_LANG import KeyboardLayout
4148from keycode_win_LANG import Keycode
4249```
4350
44- And also replace:
51+ And also replace this line :
4552``` py
4653layout = KeyboardLayoutUS(kbd)
4754```
48- With:
55+ With this line :
4956``` py
5057layout = KeyboardLayout(kbd)
5158```
0 commit comments