Maybe surface errors in the right order
This commit is contained in:
parent
16c82b1c0c
commit
0d94bf4c06
@ -58,16 +58,6 @@ class Firmware:
|
|||||||
hid_helper = USB_HID
|
hid_helper = USB_HID
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.matrix = MatrixScanner(
|
|
||||||
cols=self.col_pins,
|
|
||||||
rows=self.row_pins,
|
|
||||||
diode_orientation=self.diode_orientation,
|
|
||||||
rollover_cols_every_rows=getattr(self, 'rollover_cols_every_rows', None),
|
|
||||||
swap_indicies=getattr(self, 'swap_indicies', None),
|
|
||||||
)
|
|
||||||
|
|
||||||
self._hid_helper_inst = self.hid_helper()
|
|
||||||
|
|
||||||
self._state = InternalState(self)
|
self._state = InternalState(self)
|
||||||
|
|
||||||
def _send_hid(self):
|
def _send_hid(self):
|
||||||
@ -80,6 +70,16 @@ class Firmware:
|
|||||||
assert self.col_pins, 'no GPIO pins defined for matrix columns'
|
assert self.col_pins, 'no GPIO pins defined for matrix columns'
|
||||||
assert self.diode_orientation is not None, 'diode orientation must be defined'
|
assert self.diode_orientation is not None, 'diode orientation must be defined'
|
||||||
|
|
||||||
|
self.matrix = MatrixScanner(
|
||||||
|
cols=self.col_pins,
|
||||||
|
rows=self.row_pins,
|
||||||
|
diode_orientation=self.diode_orientation,
|
||||||
|
rollover_cols_every_rows=getattr(self, 'rollover_cols_every_rows', None),
|
||||||
|
swap_indicies=getattr(self, 'swap_indicies', None),
|
||||||
|
)
|
||||||
|
|
||||||
|
self._hid_helper_inst = self.hid_helper()
|
||||||
|
|
||||||
if self.debug_enabled:
|
if self.debug_enabled:
|
||||||
print("Firin' lazers. Keyboard is booted.")
|
print("Firin' lazers. Keyboard is booted.")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user