Hi! I'm currently working with nrf52840, and I want to drive LEDs using LP55231. Is there any library or example code that I can use?
Hi! I'm currently working with nrf52840, and I want to drive LEDs using LP55231. Is there any library or example code that I can use?
Hi!
No, we do not have an example for this specific device. I also looked around DevZone but the only thing I could find was this 6 year old ticket ( https://devzone.nordicsemi.com/f/nordic-q-a/2587/twi-issue) and this 4 year old ticket (https://devzone.nordicsemi.com/f/nordic-q-a/13852/how-do-i-recover-from-a-failed-i2c-write) where both users were trying to connect the LP55231 to an nRF51822.
It looks like the LP55231 has an I2C-compatible control interface, so that would be your best bet.
You can use the TWI peripheral on the nRF52840 which is I2C compatible, and the TWI driver available in nRF5 SDK.
Or if you wanted to use NCS we have an I2C driver available there.
Best regards,
Heidi