Python Code now working, needs further testing

This commit is contained in:
Alexander Richter 2022-11-26 01:15:46 +01:00
parent 300cc30d79
commit 9ae56ab73c

View File

@ -205,15 +205,20 @@ while True:
firstcom = 1 firstcom = 1
c["aIn.{}".format(io)] = value c["aIn.{}".format(io)] = value
if (Debug):print("aIn.{}:{}".format(io,value)) if (Debug):print("aIn.{}:{}".format(io,value))
elif cmd == "L": elif cmd == "L":
firstcom = 1 firstcom = 1
if port == value:
c["AbsKnob.{}".format(port)] = 1 for Poti in range(LPoti):
if(Debug):print("AbsKnob.{}:{}".format(port,1)) if LPotiLatches[Poti][0] == io:
else: for Pin in range(LPotiLatches[Poti][1]):
c["AbsKnob.{}".format(port)] = 0 if Pin == value:
if(Debug):print("AbsKnob.{}:{}".format(port,0)) c["LPoti.{}.{}" .format(io,Pin)] = 1
if(Debug):print("LPoti.{}.{} =1".format(io,Pin))
else:
c["LPoti.{}.{}" .format(io,Pin)] = 0
if(Debug):print("LPoti.{}.{} =0".format(io,Pin))
elif cmd == "K": elif cmd == "K":
firstcom = 1 firstcom = 1
for port in range(AbsKnobPos): for port in range(AbsKnobPos):