I am trying to communicate with a Arduino Mega as master and the due as slave when I use two megas it works great when using a due it doesn’t communicate I saw a thread here about the wire.cpp file problem and that I needed to overwrite it so I did when I overwrite it it won’t compile I get an error I will put below I put the old wire.cpp file back and it compiles uploads and just won’t communicate so not even sure yet if the cpp file will help cause I keep getting the following errr
arduino15\packages\arduino\hardware\sam\1.6.12\libraries\wire\src\Wire.cpp:26:27: fatal error:
utility/twi.h: No such file or directory
Any help would be immensely appreciated !!!
(Or maybe I am using the wrong i2c port on the due ?) I am a novice