Closed
Description
Is your feature request related to a problem?
The problem is that some I2C sensors (notably htu21 and hdc1080) require a read operation without any write operation to obtain the current data. When any write is issued, the measuring cycle is restarted, so no data is available when switching to read, resulting in a NAK from the device.
Describe the solution you'd like.
Make sending of the "sub reg" byte optional. Or remove the "sub reg" thing altogether, because it can be replaced writing the byte explicitly from the sending data buffer. In that case an extra function should be added, where data can be written and read in one transaction using a repeated start condition (like the functions for the "normal" (main core) I2C module do as well).
Describe alternatives you've considered.
For this issue, afaik, there is no alternative.
Additional context.
No response