Very broken, but some work done probably

This commit is contained in:
Kyle Brown
2018-09-21 17:22:03 -07:00
committed by Josh Klar
parent d0f35100b3
commit 7ae2d18e45
9 changed files with 63 additions and 13 deletions

View File

@@ -5,29 +5,32 @@ KEY_DOWN_EVENT = const(2)
INIT_FIRMWARE_EVENT = const(3)
def init_firmware(keymap, row_pins, col_pins, diode_orientation):
def init_firmware(keymap, row_pins, col_pins, diode_orientation, active_layers):
return {
'type': INIT_FIRMWARE_EVENT,
'keymap': keymap,
'row_pins': row_pins,
'col_pins': col_pins,
'diode_orientation': diode_orientation,
'active_layers': active_layers,
}
def key_up_event(keycode, row, col):
def key_up_event(keycode, row, col, active_layers):
return {
'type': KEY_UP_EVENT,
'keycode': keycode,
'row': row,
'col': col,
'active_layers': active_layers,
}
def key_down_event(keycode, row, col):
def key_down_event(keycode, row, col, active_layers):
return {
'type': KEY_DOWN_EVENT,
'keycode': keycode,
'row': row,
'col': col,
'active_layers': active_layers,
}