Hello,
When using hal_w2_read() and hal_w2_write(), should the 7 bit address of the slave be passed in or the 8 bit read/write address? It seems to me that passing in the 7 bit address works in hal_w2_write().
Hello,
When using hal_w2_read() and hal_w2_write(), should the 7 bit address of the slave be passed in or the 8 bit read/write address? It seems to me that passing in the 7 bit address works in hal_w2_write().
Hi
You just need to pass the 7-bit I2C address, not including the RW bit.
The library will shift the address to the left and add the RW bit for you, depending on whether or not you call the write or read function.
Best regards
Torbjørn