if dutycycle left > 255 then
dutycycleleft = 0
endif
Or whatever -- HPWM value must be 0 to 255.
if dutycycle left > 255 then
dutycycleleft = 0
endif
Or whatever -- HPWM value must be 0 to 255.
Last edited by SUNFLOWER; - 27th February 2014 at 02:24.
if dutycycle left > 32777 then
dutycycleleft = 0
elseif dutycycle left > 255 then dutycycleleft = 255
endif
Or whatever -- HPWM value must be 0 to 255.
Bookmarks