small adjustment to quadencoders in countup/down mode
This commit is contained in:
parent
ecfa92d5c4
commit
b5fbee0c37
@ -435,14 +435,14 @@ while True:
|
|||||||
if QuadEncSig[io]== 1:
|
if QuadEncSig[io]== 1:
|
||||||
if value == 0:
|
if value == 0:
|
||||||
c["counterdown.{}".format(io)] = 1
|
c["counterdown.{}".format(io)] = 1
|
||||||
time.sleep(0.05)
|
time.sleep(0.001)
|
||||||
c["counterdown.{}".format(io)] = 0
|
c["counterdown.{}".format(io)] = 0
|
||||||
time.sleep(0.05)
|
time.sleep(0.001)
|
||||||
if value == 1:
|
if value == 1:
|
||||||
c["counterup.{}".format(io)] = 1
|
c["counterup.{}".format(io)] = 1
|
||||||
time.sleep(0.05)
|
time.sleep(0.001)
|
||||||
c["counterup.{}".format(io)] = 0
|
c["counterup.{}".format(io)] = 0
|
||||||
time.sleep(0.05)
|
time.sleep(0.001)
|
||||||
if QuadEncSig[io]== 2:
|
if QuadEncSig[io]== 2:
|
||||||
c["counter.{}".format(io)] = value
|
c["counter.{}".format(io)] = value
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user