Commit 234e506
oclyke
add rollover blocking to analogWrite
this ensures that (when the timer is running) at least one pulse is emitted at each desired setting
this removes concerns about calling analogWrite too often and changing the duty cycle
the tradeoff is that analogWrite is now a blocking function that could take up to one whole timer period1 parent 7544ff1 commit 234e506
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
509 | 522 | | |
510 | 523 | | |
511 | 524 | | |
| |||
0 commit comments