Asset Tracker v2, using I2C instead of LEDs with UI module

I have read some of the Asset Tracker documentation and noticed there is a nice implementation for operating LEDs in the UI module. This seems straightforward for GPIO control, but what about using an I2C device instead? We have our own LED driver that uses I2C and would like to use this instead of LEDs in GPIO pins. Is there a simple way to program this or would it be much more time-consuming?

Parents Reply
  • zachary_z said:
    Do you have any recommendations on where to start modifying the code to either bypass the high level APIs

    If you want to "bypass the high level API" you can just set the GPIO pins directly, which is what is done in the sample I provided. But you said that the LED driver uses I2C to access the LEDs, which means you probably need to write your own functions for communicating with the LEDs.

Children
Related