Hi.
Issue 1:
Do you have a logic analyzer that you can use to measure what kind of duty cycles the PWM actually produces? When I test the library the signal is constantly high or low if I use duty cycles 0 or >100. If you are using a custom board it could be issues with your design that cause the LED to light up even though it shouldn't. Do you mind uploading your schematic and layout files?
Issue 2:
APP_PWM_POLARITY_ACTIVE_LOW is the default polarity so this probably changes nothing. Have you tried APP_PWM_POLARITY_ACTIVE_HIGH? Which one to chose depends on whether your are sinking or sourcing current to your LED.
Hey martin, when first I posted this question, devzone system marked as spam and my FAE told me to send the question on private instead: PWM library issues sorry for the duplicated question, still we have no answers...
issue 1:
yes I had the design checked by nordic too: Design Review LED driver for Bluetooth Mesh so that shouldn't be an issue
thing is interesting to me is that: for a duty cycle > 100 2 things should happen: either some error should pop up, or it should stay the same as at 100... there is something on the calculations of the PWM library that allow more than 100 duty cycle and that value is different than at 100 duty cycle... any ideas? :)
issue 2:
yes I tried both polarities... anyways, I would focus on the first issue first, since as soon as I invert the polarity then... well you get me right? :)
hey!
We are doing progress on the private ticket so I will close this one and just continue with the other.
Thanks!