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

Golang usage #13

Open
blueisaak opened this issue Jun 14, 2021 · 2 comments · May be fixed by #18
Open

Golang usage #13

blueisaak opened this issue Jun 14, 2021 · 2 comments · May be fixed by #18

Comments

@blueisaak
Copy link

Hi,
I'am just starting with golang. But is the usage example correct? I can not find a function "Write" in i2c.go only a "write". Maybe "WriteBytes" is ment?
Cheers
Isaak
... // to and from device connected via I2C bus, like: _, err := i2c.Write([]byte{0x1, 0xF3}) ...

@d2r2
Copy link
Owner

d2r2 commented Jun 15, 2021

Hi @blueisaak!
You right, there is no i2c.Write(...) function in the library, and this must be changed to i2c.WriteBytes(...).
You can apply PR with the update, either I will do it some time later.

@blueisaak
Copy link
Author

Hi @d2r2
I tried to do a PR but failed...

~/git/go-i2c$ git push --set-upstream origin fix_readme
Username for 'https://github.com': blueisaak
Password for 'https://blueisaak@github.com': 
remote: Permission to d2r2/go-i2c.git denied to blueisaak.

christian-heusel added a commit to christian-heusel/go-i2c that referenced this issue Apr 5, 2022
christian-heusel added a commit to christian-heusel/go-i2c that referenced this issue Apr 5, 2022
@christian-heusel christian-heusel linked a pull request Apr 5, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants