chipKIT® Development Platform

Inspired by Arduino™

Wire library

Created Mon, 08 Sep 2014 16:10:41 +0000 by Ian Billing

Ian Billing

Mon, 08 Sep 2014 16:10:41 +0000

Hello All

I have downloaded the latest mpide 0023 20140821 and see that the included I2C wire library (wire.h and wire.cpp) do not contain wire::read.

I was under the impression that:

Old convention is wire.send / wire.receive New convention is wire.write /

So, I would expect wire::read to be in the latest wire.h and wire.cpp files - but it was not.

I have added it and my code works fine but I still am curious as to why this is. Can anyone explain?


Mon, 08 Sep 2014 16:18:47 +0000

Two words: Human Error.

They will be added for the next release. I know I added write() / send() overloading, but I don't recall doing read() / recv() at the time - I did the write one to prove it could be done ;)

Ian Billing

Tue, 09 Sep 2014 05:09:30 +0000

Thanks Matt