Skip to content

Commit 22b5216

Browse files
authored
Update README-MACROPAD.md
1 parent fc8de29 commit 22b5216

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README-MACROPAD.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Adafruit's Macropad and Keyboard Layouts
22

3-
When using the `adafruit_macropad` library with Adafruit's Macropad, you can setup the layout and keycode classes in the constructor with code like this.
3+
When using the `adafruit_macropad` library with Adafruit's Macropad, you can setup the layout and keycode classes in the constructor with code like this. Changing the **PLATFORM_LANGUAGE** modules names for the ones you use of course.
44

55
```py
66
from adafruit_macropad import MacroPad
77

8-
from keyboard_layout_win_fr import KeyboardLayout
9-
from keycode_win_fr import Keycode
8+
from keyboard_layout_PLATFORM_LANGUAGE import KeyboardLayout
9+
from keycode_PLATFORM_LANGUAGE import Keycode
1010

1111
macropad = MacroPad(
1212
layout_class=KeyboardLayout,
@@ -18,11 +18,11 @@ macropad = MacroPad(
1818

1919
## The Hotkeys Project
2020

21-
For [the popular hotkeys project](https://learn.adafruit.com/macropad-hotkeys), not only will you have to update `code.py` with the change above, you also have to change the macros to use the keycodes setup in the macropad module instead of the `adafruit_hid` default keycode module.
21+
For [the popular hotkeys project](https://learn.adafruit.com/macropad-hotkeys), you will have to update **code.py** with the change above, making sure you replace the existing `macropad = MacroPad()` line, and not add one.
2222

23-
The `adafruit_macropad.keycodes` is a module-level variable that is setup with the value defined in the MacroPad class. When it's imported in the macros files it shares that value with the one defined in `code.py`.
23+
You also have to change the macros to use the keycodes setup in the macropad module instead of the `adafruit_hid` default keycode module. The `adafruit_macropad.keycodes` is a module-level variable that is setup with the value defined in the MacroPad class. When it's imported in the macros files it shares that value with the one defined in **code.py**.
2424

25-
Replace:
25+
Replace in every macro file:
2626
```py
2727
from adafruit_hid.keycode import Keycode
2828
```

0 commit comments

Comments
 (0)