adding some comments
This commit is contained in:
@@ -54,6 +54,7 @@ def motor(ADC):
|
||||
GPIO.output(motoRPin1,GPIO.LOW)
|
||||
GPIO.output(motoRPin2,GPIO.LOW)
|
||||
print ('Motor Stop...')
|
||||
# the more you turn the potentiometer either direction, the faster the motor speed.
|
||||
p.start(mapNUM(abs(value),0,128,0,100))
|
||||
print ('The PWM duty cycle is %d%%\n'%(abs(value)*100/127)) # print PMW duty cycle.
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user