|
Yeah, you could have it that every x amount of loops it adds 5 to the PWM input. About 30-40 program loops is a second.
Just use PWM = PWM + 5 MAX 250 so you don't wrap around.
The other option is to have it turn on or off. This is more limited, but easier to deal with.
__________________
The best moments of our lives fall in two categories: those that did happen and those that did not.
|