Closed bukatea closed 6 years ago
Well, I am not sure what you did. But when you look at the example sketch I2CScanSoft, you'll see that 1/true is used as the indicator that an I2C device responds with an ACK. And this sketch has worked so far without a problem.
Take a look: I think I followed your documentation correctly, but I do not get a response when I try with 1.
If you substitute the call to I2c_write with the intended call to i2c_start in line 33, then everything should work.
Hello,
I just wanted to report a slight but potentially significant discrepancy between the Readme documentation and actual results. In the documentation, in the explanation of i2c_start(), it states
Assuming true is 1 and false is 0, I expected a 1 when the master was receiving a response from the slave and 0 otherwise. However, in actual testing, I discovered that when the master was receiving a response, i2c_start() returned 0! Although it may not be a potentially project-threatening issue, I just wanted to point that out. Or, I could just be setting it up wrong. Who knows?
Thanks