Remove a ton of leftover MicroPython code and abstractions, including all of kmk.pins

This commit is contained in:
Josh Klar
2019-07-25 00:32:20 -07:00
parent 86c8e006e0
commit 8c57844a22
27 changed files with 179 additions and 210 deletions

View File

@@ -1,7 +1,8 @@
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
# Implements what used to be handled by KeyboardConfig.swap_indicies for this
# board, by flipping various row3 (bottom physical row) keys so their
@@ -20,8 +21,17 @@ def r3_swap(col):
class KeyboardConfig(_KeyboardConfig):
# physical, visible cols (SCK, MO, MI, RX, TX, D4)
# physical, visible rows (10, 11, 12, 13) (9, 6, 5, SCL)
col_pins = (P.SCK, P.MOSI, P.MISO, P.RX, P.TX, P.D4)
row_pins = (P.D10, P.D11, P.D12, P.D13, P.D9, P.D6, P.D5, P.SCL)
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,
)
rollover_cols_every_rows = 4
diode_orientation = DiodeOrientation.COLUMNS