Able to build a VERY basic KMK image for Feather M4 Express, flashable over UF2 only
This commit is contained in:
31
kmk/entrypoints/handwire/feather_m4_express.py
Normal file
31
kmk/entrypoints/handwire/feather_m4_express.py
Normal file
@@ -0,0 +1,31 @@
|
||||
import sys
|
||||
from logging import DEBUG
|
||||
|
||||
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=DEBUG,
|
||||
matrix_scanner=MatrixScanner,
|
||||
)
|
||||
|
||||
firmware.go()
|
||||
except Exception as e:
|
||||
sys.print_exception(e)
|
||||
sys.exit(1)
|
Reference in New Issue
Block a user