I'm trying to drive LEDs using PWM on Thingy:52 and Zephyr OS. It works when I connect external diodes to GPIOs, but built-in LEDs are connected to I/O expander instead.
Can someone point me how to drive I/O expander pin with PWM?
I'm trying to drive LEDs using PWM on Thingy:52 and Zephyr OS. It works when I connect external diodes to GPIOs, but built-in LEDs are connected to I/O expander instead.
Can someone point me how to drive I/O expander pin with PWM?
Hi
You would need to control these pins through the SX1509 I/O expander.
There is a library in Zephyr for SX1509, so it should be relatively straight forward to integrate this in your code.
I don't have time to test it today unfortunately, but I will set aside some time tomorrow to try it out.
Best regards
Torbjørn
Hi
You would need to control these pins through the SX1509 I/O expander.
There is a library in Zephyr for SX1509, so it should be relatively straight forward to integrate this in your code.
I don't have time to test it today unfortunately, but I will set aside some time tomorrow to try it out.
Best regards
Torbjørn