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.
This commit is contained in:
theBohnanza 2023-10-22 19:52:35 +02:00
parent b0a17700ac
commit a1a07a6bf0

View File

@ -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