Just replace the condition :
If pwm_signal = 0 then
Pwm_signal =Pwm_signal
Endif
With:
If pwm_signal >1000 then pwm_signal = 0
Cheers
Al.
Just replace the condition :
If pwm_signal = 0 then
Pwm_signal =Pwm_signal
Endif
With:
If pwm_signal >1000 then pwm_signal = 0
Cheers
Al.
All progress began with an idea
While this generally works, if you reduce SETPOINT to 0, when you let go of the button, SETPOINT increases to 1; how do I fix it so that it stays at 0?Code:if !but_0 then if SETPOINT>0 then SETPOINT=SETPOINT-1 endif endif if !but_1 then if SETPOINT<19 then SETPOINT=SETPOINT+1 endif endif
Bookmarks