adding some comments

This commit is contained in:
talksik
2023-05-04 14:33:05 -07:00
parent fde2704169
commit 76e6d2c106
2 changed files with 6 additions and 5 deletions
@@ -54,6 +54,7 @@ def motor(ADC):
GPIO.output(motoRPin1,GPIO.LOW) GPIO.output(motoRPin1,GPIO.LOW)
GPIO.output(motoRPin2,GPIO.LOW) GPIO.output(motoRPin2,GPIO.LOW)
print ('Motor Stop...') 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)) 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. print ('The PWM duty cycle is %d%%\n'%(abs(value)*100/127)) # print PMW duty cycle.
Binary file not shown.