Hello,
Thanks for your site! It is very useful.
I was learning about Wire.requestFrom() from your discussion/posts.
On the page
http://gammon.com.au/forum/?id=10896#i2csummary
About in the middle it says
But the example after that appears to have the logic reversed. "handle error" would occur if zero was returned, but your condition is not... notted?
Or just swap the comments and its good.
Or maybe I'm totally confused!
Thanks,
Skippy
Thanks for your site! It is very useful.
I was learning about Wire.requestFrom() from your discussion/posts.
On the page
http://gammon.com.au/forum/?id=10896#i2csummary
About in the middle it says
Quote:
Therefore the only reasonable way of doing the Wire.requestFrom is:
Therefore the only reasonable way of doing the Wire.requestFrom is:
But the example after that appears to have the logic reversed. "handle error" would occur if zero was returned, but your condition is not... notted?
Or just swap the comments and its good.
Or maybe I'm totally confused!
Thanks,
Skippy