Skip to content

Commit 294b028

Browse files
committed
more readme ducky, with a screenshot
1 parent 5948543 commit 294b028

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

PICODUCKY.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

2121
For 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
3440
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
3541
from 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
4047
from keyboard_layout_win_LANG import KeyboardLayout
4148
from keycode_win_LANG import Keycode
4249
```
4350

44-
And also replace:
51+
And also replace this line:
4552
```py
4653
layout = KeyboardLayoutUS(kbd)
4754
```
48-
With:
55+
With this line:
4956
```py
5057
layout = KeyboardLayout(kbd)
5158
```

docs/drive_pico_ducky.png

43 KB
Loading

0 commit comments

Comments
 (0)