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:
parent
b0a17700ac
commit
a1a07a6bf0
@ -249,12 +249,12 @@ if DLEDcount > 0:
|
|||||||
if Keypad > 0:
|
if Keypad > 0:
|
||||||
for port in range(Columns*Rows):
|
for port in range(Columns*Rows):
|
||||||
if Destination[port] == 0 & LinuxKeyboardInput:
|
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
|
# setup MultiplexLED halpins
|
||||||
if MultiplexLED > 0:
|
if MultiplexLED > 0:
|
||||||
for port in range(LedVccPins*LedGndPins):
|
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
|
#setup JoyStick Pins
|
||||||
|
Loading…
Reference in New Issue
Block a user