From 74fa1fb52e41b95c1df9047e1ffff39001bb67e6 Mon Sep 17 00:00:00 2001 From: xs5871 Date: Sat, 9 Apr 2022 00:09:24 +0000 Subject: [PATCH] update docs and examples --- boards/atreus62/kb.py | 4 +--- boards/boardsource/3x4/kb.py | 2 +- boards/boardsource/4x12/kb.py | 2 +- boards/boardsource/5x12/kb.py | 2 +- boards/boardsource/microdox/kb.py | 2 +- boards/crkbd/kb.py | 2 +- boards/crkbd/kb_rp2040.py | 2 +- boards/ergo_travel/kb.py | 3 +-- boards/fourtypercentclub/gherkin/kb.py | 2 +- boards/fourtypercentclub/luddite/converter_kb.py | 2 +- boards/fourtypercentclub/luddite/kb.py | 2 +- boards/jpconstantineau/Batreus44/kb_BlueMicro840.py | 2 +- boards/jpconstantineau/PyKey60/kb.py | 2 +- boards/jpconstantineau/gridmx47/kb.py | 2 +- boards/jpconstantineau/offsetmx43/kb.py | 2 +- boards/jpconstantineau/vcolchoc44/kb.py | 2 +- boards/jpconstantineau/vcolmx44/kb.py | 2 +- boards/keebio/iris/kb.py | 2 +- boards/keebio/iris/kb_converter.py | 2 +- boards/keebio/levinson/kb.py | 2 +- boards/keebio/levinson/kb_converter.py | 2 +- boards/keebio/nyquist/kb.py | 2 +- boards/keebio/nyquist/kb_converter.py | 2 +- boards/klarank.py | 4 ++-- boards/kyria/kyria_v1_kb2040.py | 4 ++-- boards/kyria/kyria_v1_rp2040.py | 4 ++-- boards/lily58/kb.py | 2 +- boards/lunakey_pico/kb.py | 2 +- boards/may_pad/kb.py | 2 +- boards/navi10/kb.py | 2 +- boards/reviung39/kb.py | 2 +- boards/reviung41/kb.py | 4 ++-- boards/rhymestone/kb.py | 2 +- boards/tg4x/kb.py | 2 +- docs/Getting_Started.md | 2 +- docs/config_and_keymap.md | 2 +- docs/encoder.md | 2 +- docs/ja/Getting_Started.md | 2 +- docs/porting_to_kmk.md | 4 ++-- docs/ptBR/Getting_Started.md | 2 +- docs/ptBR/config_and_keymap.md | 2 +- docs/ptBR/porting_to_kmk.md | 4 ++-- user_keymaps/dgriswo/pyKey60.py | 2 +- user_keymaps/dzervas/lab68.py | 2 +- 44 files changed, 50 insertions(+), 53 deletions(-) diff --git a/boards/atreus62/kb.py b/boards/atreus62/kb.py index 5bceb09..d8323a9 100644 --- a/boards/atreus62/kb.py +++ b/boards/atreus62/kb.py @@ -1,9 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation - -# from kmk.matrix import intify_coordinate as ic +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/boardsource/3x4/kb.py b/boards/boardsource/3x4/kb.py index 2bac698..0052106 100644 --- a/boards/boardsource/3x4/kb.py +++ b/boards/boardsource/3x4/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/boardsource/4x12/kb.py b/boards/boardsource/4x12/kb.py index 0a2a97e..ca9b25c 100644 --- a/boards/boardsource/4x12/kb.py +++ b/boards/boardsource/4x12/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/boardsource/5x12/kb.py b/boards/boardsource/5x12/kb.py index fb2bc99..8f09236 100644 --- a/boards/boardsource/5x12/kb.py +++ b/boards/boardsource/5x12/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/boardsource/microdox/kb.py b/boards/boardsource/microdox/kb.py index 3382ff3..95ab1df 100644 --- a/boards/boardsource/microdox/kb.py +++ b/boards/boardsource/microdox/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/crkbd/kb.py b/boards/crkbd/kb.py index eb175f9..5754816 100644 --- a/boards/crkbd/kb.py +++ b/boards/crkbd/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/crkbd/kb_rp2040.py b/boards/crkbd/kb_rp2040.py index 280b694..b173f2a 100644 --- a/boards/crkbd/kb_rp2040.py +++ b/boards/crkbd/kb_rp2040.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/ergo_travel/kb.py b/boards/ergo_travel/kb.py index 2367348..78fc8b0 100644 --- a/boards/ergo_travel/kb.py +++ b/boards/ergo_travel/kb.py @@ -1,8 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation -from kmk.matrix import intify_coordinate as ic +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/fourtypercentclub/gherkin/kb.py b/boards/fourtypercentclub/gherkin/kb.py index c00bc22..950207b 100644 --- a/boards/fourtypercentclub/gherkin/kb.py +++ b/boards/fourtypercentclub/gherkin/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/fourtypercentclub/luddite/converter_kb.py b/boards/fourtypercentclub/luddite/converter_kb.py index 4be875f..0f83279 100644 --- a/boards/fourtypercentclub/luddite/converter_kb.py +++ b/boards/fourtypercentclub/luddite/converter_kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/fourtypercentclub/luddite/kb.py b/boards/fourtypercentclub/luddite/kb.py index 1846fae..0a57a22 100644 --- a/boards/fourtypercentclub/luddite/kb.py +++ b/boards/fourtypercentclub/luddite/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/jpconstantineau/Batreus44/kb_BlueMicro840.py b/boards/jpconstantineau/Batreus44/kb_BlueMicro840.py index d598454..df48e75 100644 --- a/boards/jpconstantineau/Batreus44/kb_BlueMicro840.py +++ b/boards/jpconstantineau/Batreus44/kb_BlueMicro840.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/jpconstantineau/PyKey60/kb.py b/boards/jpconstantineau/PyKey60/kb.py index 4945a45..d3d0ce9 100644 --- a/boards/jpconstantineau/PyKey60/kb.py +++ b/boards/jpconstantineau/PyKey60/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/jpconstantineau/gridmx47/kb.py b/boards/jpconstantineau/gridmx47/kb.py index 6e8974d..12a3908 100644 --- a/boards/jpconstantineau/gridmx47/kb.py +++ b/boards/jpconstantineau/gridmx47/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/jpconstantineau/offsetmx43/kb.py b/boards/jpconstantineau/offsetmx43/kb.py index 6e8974d..12a3908 100644 --- a/boards/jpconstantineau/offsetmx43/kb.py +++ b/boards/jpconstantineau/offsetmx43/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/jpconstantineau/vcolchoc44/kb.py b/boards/jpconstantineau/vcolchoc44/kb.py index 0f305bc..2593880 100644 --- a/boards/jpconstantineau/vcolchoc44/kb.py +++ b/boards/jpconstantineau/vcolchoc44/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/jpconstantineau/vcolmx44/kb.py b/boards/jpconstantineau/vcolmx44/kb.py index c1db715..379d58d 100644 --- a/boards/jpconstantineau/vcolmx44/kb.py +++ b/boards/jpconstantineau/vcolmx44/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/keebio/iris/kb.py b/boards/keebio/iris/kb.py index 96f2405..1615ec7 100644 --- a/boards/keebio/iris/kb.py +++ b/boards/keebio/iris/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/keebio/iris/kb_converter.py b/boards/keebio/iris/kb_converter.py index 774aafc..d01c268 100644 --- a/boards/keebio/iris/kb_converter.py +++ b/boards/keebio/iris/kb_converter.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/keebio/levinson/kb.py b/boards/keebio/levinson/kb.py index d546211..faa96c3 100644 --- a/boards/keebio/levinson/kb.py +++ b/boards/keebio/levinson/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/keebio/levinson/kb_converter.py b/boards/keebio/levinson/kb_converter.py index 3c43c9f..5175107 100644 --- a/boards/keebio/levinson/kb_converter.py +++ b/boards/keebio/levinson/kb_converter.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/keebio/nyquist/kb.py b/boards/keebio/nyquist/kb.py index b3e24ef..54f5cfb 100644 --- a/boards/keebio/nyquist/kb.py +++ b/boards/keebio/nyquist/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/keebio/nyquist/kb_converter.py b/boards/keebio/nyquist/kb_converter.py index 8191886..3fd316b 100644 --- a/boards/keebio/nyquist/kb_converter.py +++ b/boards/keebio/nyquist/kb_converter.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/klarank.py b/boards/klarank.py index 2a46fc9..4772705 100644 --- a/boards/klarank.py +++ b/boards/klarank.py @@ -1,9 +1,9 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation -from kmk.matrix import intify_coordinate as ic from kmk.modules.layers import Layers +from kmk.scanners import DiodeOrientation +from kmk.scanners import intify_coordinate as ic # Implements what used to be handled by KMKKeyboard.swap_indicies for this # board, by flipping various row3 (bottom physical row) keys so their diff --git a/boards/kyria/kyria_v1_kb2040.py b/boards/kyria/kyria_v1_kb2040.py index 27006d6..040acfb 100644 --- a/boards/kyria/kyria_v1_kb2040.py +++ b/boards/kyria/kyria_v1_kb2040.py @@ -1,8 +1,8 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation -from kmk.matrix import intify_coordinate as ic +from kmk.scanners import DiodeOrientation +from kmk.scanners import intify_coordinate as ic class KMKKeyboard(_KMKKeyboard): diff --git a/boards/kyria/kyria_v1_rp2040.py b/boards/kyria/kyria_v1_rp2040.py index 73d141d..4a54fe6 100644 --- a/boards/kyria/kyria_v1_rp2040.py +++ b/boards/kyria/kyria_v1_rp2040.py @@ -1,8 +1,8 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation -from kmk.matrix import intify_coordinate as ic +from kmk.scanners import DiodeOrientation +from kmk.scanners import intify_coordinate as ic class KMKKeyboard(_KMKKeyboard): diff --git a/boards/lily58/kb.py b/boards/lily58/kb.py index 1b7e652..fe167ee 100644 --- a/boards/lily58/kb.py +++ b/boards/lily58/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/lunakey_pico/kb.py b/boards/lunakey_pico/kb.py index 72387a4..969ee16 100644 --- a/boards/lunakey_pico/kb.py +++ b/boards/lunakey_pico/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/may_pad/kb.py b/boards/may_pad/kb.py index 36dab0d..d18f63b 100644 --- a/boards/may_pad/kb.py +++ b/boards/may_pad/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/navi10/kb.py b/boards/navi10/kb.py index 8bcc1a4..3f387c8 100644 --- a/boards/navi10/kb.py +++ b/boards/navi10/kb.py @@ -2,7 +2,7 @@ import board import digitalio from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/reviung39/kb.py b/boards/reviung39/kb.py index b7dc3f4..48fe407 100644 --- a/boards/reviung39/kb.py +++ b/boards/reviung39/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/reviung41/kb.py b/boards/reviung41/kb.py index 7db8239..ace7748 100644 --- a/boards/reviung41/kb.py +++ b/boards/reviung41/kb.py @@ -1,8 +1,8 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation -from kmk.matrix import intify_coordinate as ic +from kmk.scanners import DiodeOrientation +from kmk.scanners import intify_coordinate as ic class KMKKeyboard(_KMKKeyboard): diff --git a/boards/rhymestone/kb.py b/boards/rhymestone/kb.py index 249a561..78ddae5 100644 --- a/boards/rhymestone/kb.py +++ b/boards/rhymestone/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/boards/tg4x/kb.py b/boards/tg4x/kb.py index 96d76ee..6a7670b 100644 --- a/boards/tg4x/kb.py +++ b/boards/tg4x/kb.py @@ -1,7 +1,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation class KMKKeyboard(_KMKKeyboard): diff --git a/docs/Getting_Started.md b/docs/Getting_Started.md index fd73636..96c53cc 100644 --- a/docs/Getting_Started.md +++ b/docs/Getting_Started.md @@ -22,7 +22,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard from kmk.keys import KC -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation keyboard = KMKKeyboard() diff --git a/docs/config_and_keymap.md b/docs/config_and_keymap.md index 63e3b76..9ad7f39 100644 --- a/docs/config_and_keymap.md +++ b/docs/config_and_keymap.md @@ -35,7 +35,7 @@ if __name__ == '__main__': ```python import board -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation col_pins = (board.SCK, board.MOSI, board.MISO, board.RX, board.TX, board.D4) row_pins = (board.D10, board.D11, board.D12, board.D13, board.D9, board.D6, board.D5, board.SCL) diff --git a/docs/encoder.md b/docs/encoder.md index fa06c29..98acce9 100644 --- a/docs/encoder.md +++ b/docs/encoder.md @@ -70,7 +70,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard from kmk.consts import UnicodeMode from kmk.keys import KC -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation from kmk.modules.layers import Layers from kmk.modules.encoder import EncoderHandler diff --git a/docs/ja/Getting_Started.md b/docs/ja/Getting_Started.md index 6945d03..d0759db 100644 --- a/docs/ja/Getting_Started.md +++ b/docs/ja/Getting_Started.md @@ -35,7 +35,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard from kmk.keys import KC -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation keyboard = KMKKeyboard() diff --git a/docs/porting_to_kmk.md b/docs/porting_to_kmk.md index 4a3d9bc..043002d 100644 --- a/docs/porting_to_kmk.md +++ b/docs/porting_to_kmk.md @@ -5,7 +5,7 @@ Porting a board to KMK is quite simple, and follows this base format. import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation {EXTENSIONS_IMPORT} class KMKKeyboard(_KMKKeyboard): @@ -38,7 +38,7 @@ side, the right side being offset by the number of keys on the left side, as if the rows were stacked. That would look like this ```python -from kmk.matrix import intify_coordinate as ic +from kmk.scanners import intify_coordinate as ic coord_mapping = [] coord_mapping.extend(ic(0, x, 6) for x in range(6)) diff --git a/docs/ptBR/Getting_Started.md b/docs/ptBR/Getting_Started.md index 12bc4a8..d118dc6 100644 --- a/docs/ptBR/Getting_Started.md +++ b/docs/ptBR/Getting_Started.md @@ -39,7 +39,7 @@ import board from kmk.kmk_keyboard import KMKKeyboard from kmk.keys import KC -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation keyboard = KMKKeyboard() diff --git a/docs/ptBR/config_and_keymap.md b/docs/ptBR/config_and_keymap.md index 1ef00bf..47358ac 100644 --- a/docs/ptBR/config_and_keymap.md +++ b/docs/ptBR/config_and_keymap.md @@ -36,7 +36,7 @@ if __name__ == '__main__': ```python import board -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation col_pins = (board.SCK, board.MOSI, board.MISO, board.RX, board.TX, board.D4) row_pins = (board.D10, board.D11, board.D12, board.D13, board.D9, board.D6, board.D5, board.SCL) diff --git a/docs/ptBR/porting_to_kmk.md b/docs/ptBR/porting_to_kmk.md index 4b112d8..b00d11b 100644 --- a/docs/ptBR/porting_to_kmk.md +++ b/docs/ptBR/porting_to_kmk.md @@ -6,7 +6,7 @@ Portar uma placa para o KMK é bastante simples, e segue o seguinte formato-base import board from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation +from kmk.scanners import DiodeOrientation {EXTENSIONS_IMPORT} class KMKKeyboard(_KMKKeyboard): @@ -44,7 +44,7 @@ linhas, e 6 colunas para a linha inferior. Teclados repartidos são contados pel total, não por parte separada. Isto seria mais ou menos assim: ```python -from kmk.matrix import intify_coordinate as ic +from kmk.scanners import intify_coordinate as ic coord_mapping = [] coord_mapping.extend(ic(0, x, 6) for x in range(6)) diff --git a/user_keymaps/dgriswo/pyKey60.py b/user_keymaps/dgriswo/pyKey60.py index bdb036d..0ddbfba 100755 --- a/user_keymaps/dgriswo/pyKey60.py +++ b/user_keymaps/dgriswo/pyKey60.py @@ -7,8 +7,8 @@ import board from kmk.extensions.RGB import RGB, AnimationModes from kmk.keys import KC from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard -from kmk.matrix import DiodeOrientation from kmk.modules.layers import Layers +from kmk.scanners import DiodeOrientation keyboard = _KMKKeyboard() keyboard.modules.append(Layers()) diff --git a/user_keymaps/dzervas/lab68.py b/user_keymaps/dzervas/lab68.py index 95dfe57..a92f994 100644 --- a/user_keymaps/dzervas/lab68.py +++ b/user_keymaps/dzervas/lab68.py @@ -7,8 +7,8 @@ from adafruit_mcp230xx.mcp23017 import MCP23017 from kmk.hid import HIDModes from kmk.keys import KC from kmk.kmk_keyboard import KMKKeyboard -from kmk.matrix import DiodeOrientation from kmk.modules.layers import Layers +from kmk.scanners import DiodeOrientation # DEBUG_ENABLE = True