Update code for motor

This commit is contained in:
DenzelChen
2021-01-11 16:28:50 +08:00
parent c9dd54ff5a
commit 1cad616181
+1 -1
View File
@@ -62,7 +62,7 @@ def loop():
value = adc.analogRead(0) # read ADC value of channel 0
print ('ADC Value : %d'%(value))
motor(value)
time.sleep(0.01)
time.sleep(0.2)
def destroy():
p.stop() # stop PWM