Hi. I was most interested in your I2C_Anything implementation.
There does seem to be a meaningful discrepancy between what you wrote in your forum post at http://www.gammon.com.au/forum/?id=10896&reply=8#reply8 and what is in the library download you provide at the bottom of that post.
In the post,
and in the library it writes using:
Of course, you cannot use
Great work on those. Really happy to see your PR to the official project to get them included as part of the official
There does seem to be a meaningful discrepancy between what you wrote in your forum post at http://www.gammon.com.au/forum/?id=10896&reply=8#reply8 and what is in the library download you provide at the bottom of that post.
In the post,
I2C_writeAnything() writes using:
Wire.write((byte *) &value, sizeof (value));
and in the library it writes using:
for (i = 0; i < sizeof value; i++)
Wire.write(*p++);
Of course, you cannot use
Wire.write() more than once in an Wire.onRequest() event handler. The post reflects that but the library download needs updating to reflect that particularly since the download is likely what a significant number of people are going to use to get your templates.Great work on those. Really happy to see your PR to the official project to get them included as part of the official
Wire library.