You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is already a TODO inside the DeviceRead method but I think it's worth tracking as an issue since it will be needed to implement drivers and the API needs to be different (we'd need to pass the registry id). Suggestion API:
I'd suggest adding a new Tx API to the driver, that does
the more generic write then read i2c transaction.
Then the i2c package itself can provide convenience
register read/write functions built on top of that.
Some i2c devices function by reading and writing to registers, here is an example: http://www.seeedstudio.com/wiki/Grove_-_I2C_ADC
There is already a TODO inside the Device
Read
method but I think it's worth tracking as an issue since it will be needed to implement drivers and the API needs to be different (we'd need to pass the registry id). Suggestion API:The text was updated successfully, but these errors were encountered: