From c497b252f535a2702782bbf5e2311986882b38ee Mon Sep 17 00:00:00 2001 From: "regicidal.plutophage" <36969337+regicidalplutophage@users.noreply.github.com> Date: Mon, 16 Dec 2024 01:11:11 +0000 Subject: [PATCH] Fix affected boards --- boards/a_dux/kb.py | 2 +- boards/anavi/anavi-arrows/arrows.py | 2 +- boards/anavi/knob1/code.py | 2 +- boards/anavi/knobs3/code.py | 2 +- boards/budgy/kb.py | 2 +- boards/ferris_sweep/kb.py | 2 +- boards/isopad/kb.py | 2 +- boards/pimoroni/keybow/keybow.py | 2 +- boards/pimoroni/keybow_2040/keybow_2040.py | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/boards/a_dux/kb.py b/boards/a_dux/kb.py index c62219582..b695016ef 100644 --- a/boards/a_dux/kb.py +++ b/boards/a_dux/kb.py @@ -27,4 +27,4 @@ class KMKKeyboard(_KMKKeyboard): def __init__(self): # create and register the scanner - self.matrix = KeysScanner(_KEY_CFG_LEFT) + self.matrix = KeysScanner(_KEY_CFG_LEFT, value_when_pressed=False) diff --git a/boards/anavi/anavi-arrows/arrows.py b/boards/anavi/anavi-arrows/arrows.py index 7f87b8b96..72e5e6816 100644 --- a/boards/anavi/anavi-arrows/arrows.py +++ b/boards/anavi/anavi-arrows/arrows.py @@ -17,4 +17,4 @@ class AnaviArrows(KMKKeyboard): ''' def __init__(self): - self.matrix = KeysScanner([board.D1, board.D2, board.D3, board.D6]) + self.matrix = KeysScanner([board.D1, board.D2, board.D3, board.D6], value_when_pressed=False) diff --git a/boards/anavi/knob1/code.py b/boards/anavi/knob1/code.py index 5cc6469d8..35d02a10c 100644 --- a/boards/anavi/knob1/code.py +++ b/boards/anavi/knob1/code.py @@ -8,7 +8,7 @@ from kmk.scanners.keypad import KeysScanner knob = KMKKeyboard() -knob.matrix = KeysScanner([]) +knob.matrix = KeysScanner([], value_when_pressed=False) media_keys = MediaKeys() knob.extensions.append(media_keys) diff --git a/boards/anavi/knobs3/code.py b/boards/anavi/knobs3/code.py index 5911ec466..b3ca3983a 100644 --- a/boards/anavi/knobs3/code.py +++ b/boards/anavi/knobs3/code.py @@ -8,7 +8,7 @@ from kmk.scanners.keypad import KeysScanner knob = KMKKeyboard() -knob.matrix = KeysScanner([]) +knob.matrix = KeysScanner([], value_when_pressed=False) media_keys = MediaKeys() knob.extensions.append(media_keys) diff --git a/boards/budgy/kb.py b/boards/budgy/kb.py index 28d9842e4..1fd4208dd 100644 --- a/boards/budgy/kb.py +++ b/boards/budgy/kb.py @@ -41,7 +41,7 @@ class KMKKeyboard(_KMKKeyboard): def __init__(self): # create and register the scanner - self.matrix = KeysScanner(pins=_KEY_CFG_RIGHT if isRight else _KEY_CFG_LEFT) + self.matrix = KeysScanner(pins=_KEY_CFG_RIGHT if isRight else _KEY_CFG_LEFT, value_when_pressed=False) # fmt: off coord_mapping = [ diff --git a/boards/ferris_sweep/kb.py b/boards/ferris_sweep/kb.py index a4bbb1721..03e5586b5 100644 --- a/boards/ferris_sweep/kb.py +++ b/boards/ferris_sweep/kb.py @@ -19,7 +19,7 @@ class KMKKeyboard(_KMKKeyboard): def __init__(self): # create and register the scanner - self.matrix = KeysScanner(_KEY_CFG_LEFT) + self.matrix = KeysScanner(_KEY_CFG_LEFT, value_when_pressed=False) # fmt: off coord_mapping = [ diff --git a/boards/isopad/kb.py b/boards/isopad/kb.py index 6a2c89bbe..0055234ce 100644 --- a/boards/isopad/kb.py +++ b/boards/isopad/kb.py @@ -15,4 +15,4 @@ class KMKKeyboard(_KMKeyboard): def __init__(self): # create and register the scanner - self.matrix = KeysScanner(_KEY_CFG) + self.matrix = KeysScanner(_KEY_CFG, value_when_pressed=False) diff --git a/boards/pimoroni/keybow/keybow.py b/boards/pimoroni/keybow/keybow.py index 7fc319f3a..07c5f306d 100644 --- a/boards/pimoroni/keybow/keybow.py +++ b/boards/pimoroni/keybow/keybow.py @@ -110,4 +110,4 @@ class Keybow(KMKKeyboard): extensions = [rgb] def __init__(self): - self.matrix = KeysScanner(_KEY_CFG) + self.matrix = KeysScanner(_KEY_CFG, value_when_pressed=False) diff --git a/boards/pimoroni/keybow_2040/keybow_2040.py b/boards/pimoroni/keybow_2040/keybow_2040.py index 162d0877c..c498b951a 100644 --- a/boards/pimoroni/keybow_2040/keybow_2040.py +++ b/boards/pimoroni/keybow_2040/keybow_2040.py @@ -43,4 +43,4 @@ class Keybow2040(KMKKeyboard): ''' def __init__(self): - self.matrix = KeysScanner(_KEY_CFG) + self.matrix = KeysScanner(_KEY_CFG, value_when_pressed=False)