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

NACK lock after reading from slave #11

Open
oomek opened this issue Apr 28, 2020 · 3 comments
Open

NACK lock after reading from slave #11

oomek opened this issue Apr 28, 2020 · 3 comments

Comments

@oomek
Copy link

oomek commented Apr 28, 2020

I have 2 Attinys85 takling, the master with your lib and the slave with TinyWire. Writing to slave goes very well, but when I request data I get a NACK lock for all future r/w operations. Do you know by any chance what might be the problem?

image

@technoblogy
Copy link
Owner

technoblogy commented Apr 29, 2020 via email

@technoblogy
Copy link
Owner

Sorry for the delay in having a look at this, but I can't see anything obviously wrong.

When you're requesting data are you specifying the number of bytes you want to read with the second parameter of TinyI2C.start(), or are you specifying the last byte with TinyI2C.readLast()?

@oomek
Copy link
Author

oomek commented May 3, 2020

I tried both ways with the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants