This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Invert PWM Behaviour

Is there any way to invert the PWM behaviour easily? I'm trying to develop firmware that will run on the DK52 (LED active high) and my custom board (LED active low).

I'm using the nrf_drv_pwm library and have tried to simply change the .output_pins in nrf_drv_pwm_config_t to

.output_pins = { led | NRF_DRV_PWM_PIN_INVERTED },

nRF52832 SDK14.1

Related