Support ItsyBitsy M4 Express as an effective clone of the Feather M4 Express with less pins. Because that's what it is.
This commit is contained in:
33
kmk/entrypoints/handwire/itsybitsy_m4_express.py
Normal file
33
kmk/entrypoints/handwire/itsybitsy_m4_express.py
Normal file
@@ -0,0 +1,33 @@
|
||||
import sys
|
||||
from logging import WARNING
|
||||
|
||||
from kmk.circuitpython.hid import HIDHelper
|
||||
from kmk.circuitpython.matrix import MatrixScanner
|
||||
from kmk.common.consts import UnicodeModes
|
||||
from kmk.firmware import Firmware
|
||||
|
||||
|
||||
def main():
|
||||
from kmk_keyboard_user import cols, diode_orientation, keymap, rows
|
||||
|
||||
try:
|
||||
from kmk_keyboard_user import unicode_mode
|
||||
except Exception:
|
||||
unicode_mode = UnicodeModes.NOOP
|
||||
|
||||
try:
|
||||
firmware = Firmware(
|
||||
keymap=keymap,
|
||||
row_pins=rows,
|
||||
col_pins=cols,
|
||||
diode_orientation=diode_orientation,
|
||||
unicode_mode=unicode_mode,
|
||||
log_level=WARNING,
|
||||
matrix_scanner=MatrixScanner,
|
||||
hid=HIDHelper,
|
||||
)
|
||||
|
||||
firmware.go()
|
||||
except Exception as e:
|
||||
sys.print_exception(e)
|
||||
sys.exit(1)
|
Reference in New Issue
Block a user