Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/exp/io: i2c support for reading/writing to registers #15858

Closed
mattetti opened this issue May 27, 2016 · 2 comments
Closed

x/exp/io: i2c support for reading/writing to registers #15858

mattetti opened this issue May 27, 2016 · 2 comments

Comments

@mattetti
Copy link
Contributor

mattetti commented May 27, 2016

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 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:

func (d *Device) ReadFromReg(reg byte, buf []byte) error{}
func (d *Device) WriteToReg(reg byte, buf []byte) error{}
@minux
Copy link
Member

minux commented May 27, 2016 via email

@quentinmit quentinmit added this to the Unreleased milestone Jun 17, 2016
@rakyll
Copy link
Contributor

rakyll commented Sep 28, 2016

Closed via golang/exp@88ba025.

@rakyll rakyll closed this as completed Sep 28, 2016
@golang golang locked and limited conversation to collaborators Sep 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants