Page 1 of 1

I2C using with NanoPC T2q

Posted: Fri Aug 10, 2018 12:28 pm
by ns2021
Hi, I'm using NanoPC-T2, and I'd like to achieve I2C communication on Android. I open the port with the following command and set the I2CSlave without problems.

Code: Select all

  devFD ="/dev/i2c-0", FileCtlEnum.O_RDWR);
  HardwareControler.setI2CSlave(devFD, 0x48)

But I have a problem when reading or writing data, because when measuring it with an oscilloscope the clock does not work in a continuous way and the data sent is repeated in the information channel.

Code: Select all

HardwareControler.I2CWriteByte(devFD,(byte) (0x01) ,0);

Thank you