From 41dc58e4281902171cbc19525bb055e680df50a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elvis=20Pf=C3=BCtzenreuter?= Date: Mon, 13 May 2019 01:30:09 -0300 Subject: [PATCH] Make matrix scanner class configurable --- kmk/firmware.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kmk/firmware.py b/kmk/firmware.py index a905dcb..a9d4622 100644 --- a/kmk/firmware.py +++ b/kmk/firmware.py @@ -57,6 +57,7 @@ class Firmware: row_pins = None col_pins = None diode_orientation = None + matrix_scanner = MatrixScanner unicode_mode = UnicodeMode.NOOP tap_time = 300 @@ -174,7 +175,7 @@ class Firmware: if self.uart_pin is not None: self.uart = self.init_uart(self.uart_pin) - self.matrix = MatrixScanner( + self.matrix = self.matrix_scanner( cols=self.col_pins, rows=self.row_pins, diode_orientation=self.diode_orientation,