Writing I2C application code on NuttX