tiny-i2c icon indicating copy to clipboard operation
tiny-i2c copied to clipboard

NACK lock after reading from slave

Open oomek opened this issue 4 years ago • 3 comments

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

oomek avatar Apr 28 '20 22:04 oomek

OK, I’ll see if I can figure something out.

David

technoblogy avatar Apr 29 '20 09:04 technoblogy

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()?

technoblogy avatar May 03 '20 18:05 technoblogy

I tried both ways with the same result.

oomek avatar May 03 '20 19:05 oomek