Open nitin710 opened 7 hours ago
I'm relatively convinced that we need a different implementation of the requestFrom
function to be able to read data from the IC. In the absence of this function, I am proceeding with having internal register stated in the driver itself
The I2C protocol for reading registers from the KTD2026 (datasheet) seems to be different from the usual implementation.
<SEND ADDRESS IN READ MODE> <REGISTER TO READ>
FOLLOWED BY<READ VALUE>
For sensors we have previously used, for example, MAX30101 (datasheet), the read sequence looks like
This I2C sequence can be achieved by the following commands
However, there seems to be no support in the Wire library to send
<SEND ADDRESS IN READ MODE> <REGISTER TO READ>
. I think the intended use of the Wire library to read a register is:read bytes of data sent from the slave I could not find a API to create the I2C timing diagram we need.
References:
Logic Analyzer output