added better print out and cooldown for rotaition
Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>master
parent
27bf5d7b1c
commit
bd833b0c64
6
code.py
6
code.py
|
@ -24,5 +24,9 @@ while True:
|
||||||
else:
|
else:
|
||||||
if previousValue != clkPin.value:
|
if previousValue != clkPin.value:
|
||||||
if clkPin.value == False:
|
if clkPin.value == False:
|
||||||
print("1x"+str(dtPin.value))
|
if dtPin.value == False:
|
||||||
|
print("1x1")
|
||||||
|
elif dtPin.value == True:
|
||||||
|
print("1x0")
|
||||||
|
time.sleep(0.1)
|
||||||
previousValue = clkPin.value
|
previousValue = clkPin.value
|
||||||
|
|
Loading…
Reference in New Issue