Timeline for Is it possible to simulate PWM using delay() function?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 25, 2015 at 19:35 | comment | added | Gerben |
Sorry :-p. Without interrupts, millis is not updated.
|
|
Nov 25, 2015 at 16:28 | comment | added | JAM1693 | @Gerben Right, so in that case I'd use millis() and use a similar method without delaying the function. That would get rid of the first issue. The second problem might also be fixed as long as your Timer ran fast enough to catch each cycle. | |
Nov 25, 2015 at 16:18 | comment | added | Gerben | If you disable interrupts, delay will no longer work. | |
Nov 25, 2015 at 16:13 | history | answered | JAM1693 | CC BY-SA 3.0 |