From c48b536d613a010d1680243be2929a57770d0dd6 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Sun, 30 Jul 2023 09:26:00 -0400 Subject: [PATCH] updates from programming_raccoon -- remove timeout on combo module (unneeded / adds lag) ; add method for phsyical config overrides --- ardux/kb.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ardux/kb.py b/ardux/kb.py index cbc7990..62bf32b 100644 --- a/ardux/kb.py +++ b/ardux/kb.py @@ -34,6 +34,10 @@ class ArduxKeyboard(KMKKeyboard): keymap = [] + def setup_physical_config(self): + # Direct wire & matrix setup + self.matrix = KeysScanner([pins[16], pins[17], pins[18], pins[19], pins[12], pins[13], pins[14], pins[15]]) + # Init / constructor / setup def __init__(self): # Enable debugging if appropriate @@ -44,8 +48,8 @@ class ArduxKeyboard(KMKKeyboard): self.modules = [] self.extensions = [] - # Direct wire & matrix setup - self.matrix = KeysScanner([pins[16], pins[17], pins[18], pins[19], pins[12], pins[13], pins[14], pins[15]]) + # Call setup hook -- matrix/direct wire config + self.setup_physical_config() # Layers self.layers_module = Layers() @@ -55,7 +59,6 @@ class ArduxKeyboard(KMKKeyboard): # Combos self.combo_module = Combos() - self.combo_module.timeout = 250 self.combo_module.prefer_hold = True self.combo_module.tap_interrupted = False self.modules.append(self.combo_module)