This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

tpl0401



tpl0401的I2C读写应该follow什么样个格式。有没有具体的寄存器地址。

write:

char tmp[2]={0x0,0x0};

tmp[1] = writevalue

   i2c_master_send(tpl0401_dev->client,tmp, 2);

read:

i2c_master_send(tpl0401_dev->client,tmp, 1);

i2c_master_recv(tpl0401_dev->client,&value, 1);

这样操作有没有问题