From examples like this Gammon Forum : Electronics : Microprocessors : SPI - Serial Peripheral Interface - for Arduino, I set up a basic communication to test simple SPI functionality between 2 identical Flip n Click boards that are recognized by Arduino IDE as a Due model. However, when compiling, the following error message shows up:
error: 'SPDR' was not declared in this scope
on the lines based of the code in the link:
// turn on SPI in slave mode
SPCR |= bit (SPE);
...
byte c = SPDR; // grab byte from SPI Data Register
From looking at other links, it appears that this type of slave mode declaration is not supported on Arduino Due. Has anyone ever implemented slave mode on Due or seen any links that would be helpful?
Any other general tips about maybe pinout mistakes, setup, or compatibility issues would be much appreciated.
Thanks