Adjust digitalWrite() on x41, 828 PWM pins #471
Labels
enhancement
work complete but untested
Stuff for 2.0.0 that is finished, but not yet testable because 2.0.0-dev won't compile anything.
Milestone
Currently, when digitalWrite() is called on a PWM pin, both the timer's COMnx bits AND the TOCPMCOE register bits are changed. While one or the other is required in order to turn off PWM if it is currently on, both are not needed. Current behavior is stupid, and it makes life harder on people who take over the timers to generate advanced PWM (which is particularly popular on the 841/441, as the timing facilities on those parts are truly delightful). Instead, digitalWrite() should only switch the TOCPMCOE register bits.
The text was updated successfully, but these errors were encountered: