Commit b619597a authored by David Sanders's avatar David Sanders

Use falling edge polarity for PWM to match standard Arduino

parent bd8bba2e
......@@ -222,7 +222,7 @@ void analogWrite( uint32_t ulPin, uint32_t ulValue )
for (int i = 0; i < PWM_COUNT; i++) {
if (pwmChannelPins[i] == 0xFFFFFFFF || pwmChannelPins[i] == ulPin) {
pwmChannelPins[i] = ulPin;
pwmChannelSequence[i] = ulValue;
pwmChannelSequence[i] = ulValue | bit(15);
NRF_PWM_Type* pwm = pwms[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment