From 1cad616181f836022f58aec78a485060b2819d60 Mon Sep 17 00:00:00 2001 From: DenzelChen <291689742@qq.com> Date: Mon, 11 Jan 2021 16:28:50 +0800 Subject: [PATCH] Update code for motor --- Code/Python_Code/13.1.1_Motor/Motor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Python_Code/13.1.1_Motor/Motor.py b/Code/Python_Code/13.1.1_Motor/Motor.py index 7343ea0..16dd554 100644 --- a/Code/Python_Code/13.1.1_Motor/Motor.py +++ b/Code/Python_Code/13.1.1_Motor/Motor.py @@ -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