small adjustment to quadencoders in countup/down mode

This commit is contained in:
Alexander Richter 2023-09-12 23:17:30 +02:00
parent ecfa92d5c4
commit b5fbee0c37

View File

@ -435,14 +435,14 @@ while True:
if QuadEncSig[io]== 1:
if value == 0:
c["counterdown.{}".format(io)] = 1
time.sleep(0.05)
time.sleep(0.001)
c["counterdown.{}".format(io)] = 0
time.sleep(0.05)
time.sleep(0.001)
if value == 1:
c["counterup.{}".format(io)] = 1
time.sleep(0.05)
time.sleep(0.001)
c["counterup.{}".format(io)] = 0
time.sleep(0.05)
time.sleep(0.001)
if QuadEncSig[io]== 2:
c["counter.{}".format(io)] = value