Go Down

Topic: I2C between Arduino Due and Nano (Read 197 times) previous topic - next topic

vishnu8861


Hello,
I'm trying to communicate between two Arduino Due and Nano. Nano as Master and Due as a slave. As given in the library description "Wire.h" When the master request for data from the slave, first it goes to Request ISR.
Code: [Select]
Wire.onRequest(requestEvent) But when compile the program for Arduino Due I get following errors.
Code: [Select]
In file included from C:\Users\\Slave_Test3.ino:14:0:


C:\Users\..\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.11\libraries\Wire\src/Wire.h:59:7: error:   initializing argument 1 of 'void TwoWire::onRequest(void (*)())' [-fpermissive]



 void onRequest(void(*)(void));

       ^

But If I change from Arduino Due to any other board this error does not come.

Thank you

Go Up