我买了一块开发板,打算在I2C上接个硬件,上层android app通过读写I2C,获取数据,但我看了指南上面的接口函数
但是看了读函数,都只返回对错,没有返回想要的数据。
static public native int I2CReadByteData(int fd, int pos, int wait_us);
static public native int I2CReadByte(int fd, int wait_us);
这两个函数的返回值是0(表示成功) -1表示失败,而不是返回的具体的数值
请问,这个是说明书的问题,还是说不支持读I2C,我从哪里获取I2C的值?