Update code for motor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user