Rename "Firmware" to "KeyboardConfig" for clarity in main.py and to illustrate separation of KeyboardConfig/InternalState

This commit is contained in:
Josh Klar
2019-07-20 14:53:30 -07:00
parent e8c3b5ac70
commit 1e9625ae0e
33 changed files with 71 additions and 71 deletions

View File

@@ -1,9 +1,9 @@
from kmk.consts import DiodeOrientation
from kmk.mcus.circuitpython_usbhid import Firmware as _Firmware
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 Firmware.swap_indicies for this
# Implements what used to be handled by KeyboardConfig.swap_indicies for this
# board, by flipping various row3 (bottom physical row) keys so their
# coord_mapping matches what the user pressed (even if the wiring
# underneath is sending different coordinates)
@@ -24,7 +24,7 @@ def r3_swap(col):
return col
class Firmware(_Firmware):
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)