Skip to content

Commit 6015f0d

Browse files
committed
switch KeyboardLayoutBase to latest adafruit_HID
1 parent fc4a15f commit 6015f0d

18 files changed

Lines changed: 20 additions & 18 deletions

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ NOTE: for pico-ducky users, [there's a dedicated guide](PICODUCKY.md).
1313

1414
## Install your language
1515

16-
To install both the layout and keycode files for your language, you need to copy 3 files to your board. Pick the language and platforms that match yours. Use the `.py` version, or the `.mpy` version matching your version of Circuitpython. The mpy files take less space and are better suited for Circuitpython boards with less than 1MB of drive.
16+
To install both the layout and keycode files for your language, you need to copy 2 files to your board. Pick the language and platforms that match yours. Use the `.py` version, or the `.mpy` version matching your version of Circuitpython. The mpy files take less space and are better suited for Circuitpython boards with less than 1MB of drive.
1717

18-
- `keyboard_layout.mpy` (support file)
1918
- `keyboard_layout_win_fr.mpy` (pick your platform/language)
2019
- `keycode_win_fr.mpy` (pick your platform/language)
2120

@@ -29,7 +28,7 @@ Don't forget to also install [the adafruit_hid library](https://github.com/adafr
2928

3029
### Layouts
3130

32-
Layouts require first installing the `keyboard_layout` module (`keyboard_layout.mpy` in the bundle zip), containing the base class for the layouts. This file should be part of adafruit_hid in the future and will then be removed.
31+
Layouts require the **latest** version of the `adafruit_hid` library (at least 5.x.x).
3332

3433
For the plaform **platform** (win, mac) and the layout language **lang**. The module `keyboard_layout_platform_lang` has a class called `KeyboardLayout`. It contains the layout information for use with the `Keyboard` to type text.
3534

docs/drive_generic.png

-50 Bytes
Loading

docs/drive_pico_ducky.png

-7.44 KB
Loading

libraries/layouts/keyboard_layout_mac_fr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* Author(s): Dan Halbert, Neradoc
2626
"""
2727

28-
from keyboard_layout import KeyboardLayoutBase
28+
from adafruit_hid.keyboard_layout_base import KeyboardLayoutBase
2929

3030

3131
__version__ = "1.0.0-auto.0"

libraries/layouts/keyboard_layout_us_dvo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from keyboard_layout import KeyboardLayoutBase
1+
from adafruit_hid.keyboard_layout_base import KeyboardLayoutBase
22

33

44
__version__ = "0.0.0-auto.0"

libraries/layouts/keyboard_layout_win_br.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__repo__ = "https://github.com/Neradoc/Circuitpython_Keyboard_Layouts.git"
1111

1212

13-
from keyboard_layout import KeyboardLayoutBase
13+
from adafruit_hid.keyboard_layout_base import KeyboardLayoutBase
1414
class KeyboardLayout(KeyboardLayoutBase):
1515
ASCII_TO_KEYCODE = (
1616
b'\x00'

libraries/layouts/keyboard_layout_win_cz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__repo__ = "https://github.com/Neradoc/Circuitpython_Keyboard_Layouts.git"
1111

1212

13-
from keyboard_layout import KeyboardLayoutBase
13+
from adafruit_hid.keyboard_layout_base import KeyboardLayoutBase
1414
class KeyboardLayout(KeyboardLayoutBase):
1515
ASCII_TO_KEYCODE = (
1616
b'\x00'

libraries/layouts/keyboard_layout_win_cz1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__repo__ = "https://github.com/Neradoc/Circuitpython_Keyboard_Layouts.git"
1111

1212

13-
from keyboard_layout import KeyboardLayoutBase
13+
from adafruit_hid.keyboard_layout_base import KeyboardLayoutBase
1414
class KeyboardLayout(KeyboardLayoutBase):
1515
ASCII_TO_KEYCODE = (
1616
b'\x00'

libraries/layouts/keyboard_layout_win_da.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__repo__ = "https://github.com/Neradoc/Circuitpython_Keyboard_Layouts.git"
1111

1212

13-
from keyboard_layout import KeyboardLayoutBase
13+
from adafruit_hid.keyboard_layout_base import KeyboardLayoutBase
1414
class KeyboardLayout(KeyboardLayoutBase):
1515
ASCII_TO_KEYCODE = (
1616
b'\x00'

libraries/layouts/keyboard_layout_win_de.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__repo__ = "https://github.com/Neradoc/Circuitpython_Keyboard_Layouts.git"
1111

1212

13-
from keyboard_layout import KeyboardLayoutBase
13+
from adafruit_hid.keyboard_layout_base import KeyboardLayoutBase
1414
class KeyboardLayout(KeyboardLayoutBase):
1515
ASCII_TO_KEYCODE = (
1616
b'\x00'

0 commit comments

Comments
 (0)