Support the PyBoard v1.1 as much as the Feather was, at least

This commit is contained in:
Josh Klar
2018-09-16 00:15:16 -07:00
parent c5f87fae74
commit f5fc555ac5
6 changed files with 134 additions and 9 deletions

View File

@@ -0,0 +1,27 @@
from logging import DEBUG
from kmk.common.consts import DiodeOrientation
from kmk.firmware import Firmware
def main():
cols = ('X10', 'X11', 'X12')
rows = ('X1', 'X2', 'X3')
diode_orientation = DiodeOrientation.COLUMNS
keymap = [
['A', 'B', 'C'],
['D', 'E', 'F'],
['G', 'H', 'I'],
]
firmware = Firmware(
keymap=keymap,
row_pins=rows,
col_pins=cols,
diode_orientation=diode_orientation,
log_level=DEBUG,
)
firmware.go()