djsfantasi
- Joined Apr 11, 2010
- 9,163
if V3<28V i want my PWM to start, and if V3>28V i want my pwm to stop, that's it, those are my 2 lines of code that i need for my charging. Is there a big problem with that? because everyone seems to not like that thing.
And if V3 is equal to 28? What then?
C:
if (V3 < 28) {
pulsewidth=min(255,++pulsewidth;
} else {
pulsewidth = 0;
}