Python Code now working, needs further testing
This commit is contained in:
parent
300cc30d79
commit
9ae56ab73c
15
arduino.py
15
arduino.py
@ -205,14 +205,19 @@ 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:
|
||||||
|
for Pin in range(LPotiLatches[Poti][1]):
|
||||||
|
if Pin == value:
|
||||||
|
c["LPoti.{}.{}" .format(io,Pin)] = 1
|
||||||
|
if(Debug):print("LPoti.{}.{} =1".format(io,Pin))
|
||||||
else:
|
else:
|
||||||
c["AbsKnob.{}".format(port)] = 0
|
c["LPoti.{}.{}" .format(io,Pin)] = 0
|
||||||
if(Debug):print("AbsKnob.{}:{}".format(port,0))
|
if(Debug):print("LPoti.{}.{} =0".format(io,Pin))
|
||||||
|
|
||||||
elif cmd == "K":
|
elif cmd == "K":
|
||||||
firstcom = 1
|
firstcom = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user