@@ -16,36 +16,43 @@ https://www.neradoc.me/layouts/
16
16
17
17
## Now you have a zip file
18
18
19
- #### Find your language/layout in the lib directory
19
+ ### Find your language/layout in the lib directory
20
20
21
21
For a language ` LANG ` , copy the following files from the zip's ` lib ` folder to the ` lib ` folder of the board.
22
22
* 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.
24
24
25
25
- ` keyboard_layout.py `
26
26
- ` keyboard_layout_win_LANG.py `
27
27
- ` keycode_win_LANG.py `
28
28
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 ) .
30
30
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:
32
38
33
39
``` py
34
40
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
35
41
from adafruit_hid.keycode import Keycode
36
42
```
37
43
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).*
39
46
``` py
40
47
from keyboard_layout_win_LANG import KeyboardLayout
41
48
from keycode_win_LANG import Keycode
42
49
```
43
50
44
- And also replace:
51
+ And also replace this line :
45
52
``` py
46
53
layout = KeyboardLayoutUS(kbd)
47
54
```
48
- With:
55
+ With this line :
49
56
``` py
50
57
layout = KeyboardLayout(kbd)
51
58
```
0 commit comments