Hi,
this code works as expected (PWM goes to a pin with a LED connected, and the LED blinks):
while(1) {
while(app_pwm_channel_duty_set(&PWM1, 0, 99) == NRF_ERROR_BUSY);
waitMs(1000);
while(app_pwm_channel_duty_set(&PWM1, 0, 0) == NRF_ERROR_BUSY);
waitMs(1000);
}
If I change 99% duty cycle to 100% then the LED is on all the time, its brightness doesn't change when the duty is set to 0% in the second step. Is that some bug? I use latest SDK.