Fix linting; move kmk.util.intify_coordinate to kmk.matrix.intify_coordinate (trying to deprecate/remove util)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import board
|
||||
|
||||
from kmk.consts import DiodeOrientation
|
||||
from kmk.matrix import intify_coordinate as ic
|
||||
from kmk.mcus.circuitpython_usbhid import KeyboardConfig as _KeyboardConfig
|
||||
from kmk.pins import Pin as P
|
||||
from kmk.util import intify_coordinate as ic
|
||||
|
||||
|
||||
class KeyboardConfig(_KeyboardConfig):
|
||||
|
@@ -1,7 +1,7 @@
|
||||
from kmk.consts import DiodeOrientation
|
||||
from kmk.matrix import intify_coordinate as ic
|
||||
from kmk.mcus.circuitpython_usbhid import KeyboardConfig as _KeyboardConfig
|
||||
from kmk.pins import Pin as P
|
||||
from kmk.util import intify_coordinate as ic
|
||||
|
||||
# Implements what used to be handled by KeyboardConfig.swap_indicies for this
|
||||
# board, by flipping various row3 (bottom physical row) keys so their
|
||||
|
@@ -1,8 +1,8 @@
|
||||
from kmk.consts import LeaderMode
|
||||
from kmk.keys import KC
|
||||
from kmk.kmktime import ticks_ms
|
||||
from kmk.matrix import intify_coordinate
|
||||
from kmk.types import TapDanceKeyMeta
|
||||
from kmk.util import intify_coordinate
|
||||
|
||||
|
||||
class InternalState:
|
||||
|
@@ -49,7 +49,8 @@ import kmk.internal_state # isort:skip
|
||||
# Thanks for sticking around. Now let's do real work, starting below
|
||||
|
||||
from kmk.kmktime import sleep_ms
|
||||
from kmk.util import intify_coordinate as ic
|
||||
from kmk.matrix import intify_coordinate as ic
|
||||
|
||||
from kmk import led, rgb # isort:skip
|
||||
|
||||
|
||||
|
@@ -3,6 +3,10 @@ import digitalio
|
||||
from kmk.consts import DiodeOrientation
|
||||
|
||||
|
||||
def intify_coordinate(row, col):
|
||||
return row << 8 | col
|
||||
|
||||
|
||||
class MatrixScanner:
|
||||
def __init__(
|
||||
self,
|
||||
|
@@ -1,7 +1,3 @@
|
||||
def intify_coordinate(row, col):
|
||||
return row << 8 | col
|
||||
|
||||
|
||||
def get_wide_ordinal(char):
|
||||
if len(char) != 2:
|
||||
return ord(char)
|
||||
|
Reference in New Issue
Block a user