Go Down

Topic: I2C between Arduino Due and Nano (Read 104 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 Handler.
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 during the target of compile this error does not come.

Thank you

avr_fred

If you want help with a code problem, you must post all of your code, not just the offending line.

Please review the instructions for how to use the forum properly.

How to use this forum

Go Up