added better print out and cooldown for rotaition

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-08-12 02:10:21 +02:00
parent 27bf5d7b1c
commit bd833b0c64
1 changed files with 5 additions and 1 deletions

View File

@ -24,5 +24,9 @@ while True:
else:
if previousValue != clkPin.value:
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