From a1a07a6bf0bf63c623142a7e2433fb77b1e8417c Mon Sep 17 00:00:00 2001 From: theBohnanza Date: Sun, 22 Oct 2023 19:52:35 +0200 Subject: [PATCH] fixed Bug fixed a bug with Matrix Keyboards and Multiplexed LEDs. Keyboard Inputs appeared as writabele and LED Outputs as unwritable. Now it is inverted,how it should be. --- arduino-connector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arduino-connector.py b/arduino-connector.py index 53a10fd..a7a578f 100644 --- a/arduino-connector.py +++ b/arduino-connector.py @@ -249,12 +249,12 @@ if DLEDcount > 0: if Keypad > 0: for port in range(Columns*Rows): if Destination[port] == 0 & LinuxKeyboardInput: - c.newpin("keypad.{}".format(Chars[port]), hal.HAL_BIT, hal.HAL_IN) + c.newpin("keypad.{}".format(Chars[port]), hal.HAL_BIT, hal.HAL_OUT) # setup MultiplexLED halpins if MultiplexLED > 0: for port in range(LedVccPins*LedGndPins): - c.newpin("mled.{}".format(port), hal.HAL_BIT, hal.HAL_OUT) + c.newpin("mled.{}".format(port), hal.HAL_BIT, hal.HAL_IN) #setup JoyStick Pins