TFTM101-1 10 inch Display RA8876, problem with Mega 2560

Hello All,

I have recently purchased a 10.1 inch TFT display from:

This display is advertised as being compatible with the Mega 2560. I have downloaded the library and example files from this web site and have been experiencing problems just trying to compile the code. I have not yet powered up the display nor the shield. The SPI.h is referenced often.

Note: The display was designed for the Due but also advertised as being Mega 2560 compatible.

The first error stands out:

error: no matching function for call to 'SPIClass::begin(int&)'

The following is a complete dump of the compiler report. Thanks.

Complete Error Report After Compiling:

Arduino: 1.8.13 (Linux), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560) /home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp: In member function 'boolean Ra8876_Lite::begin()':
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:27:19: error: no matching function for call to 'SPIClass::begin(int&)'
SPI.begin(_xnscs);
^
In file included from /home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:11:0:
/home/pi/Downloads/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src/SPI.h:159:15: note: candidate: static void SPIClass::begin()
static void begin();
^~~~~
/home/pi/Downloads/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src/SPI.h:159:15: note: candidate expects 0 arguments, 1 provided
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:30:32: error: no matching function for call to 'SPIClass::setClockDivider(int&, int)'
SPI.setClockDivider(_xnscs,21);
^
In file included from /home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:11:0:
/home/pi/Downloads/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src/SPI.h:302:22: note: candidate: static void SPIClass::setClockDivider(uint8_t)
inline static void setClockDivider(uint8_t clockDiv) {
^~~~~~~~~~~~~~~
/home/pi/Downloads/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src/SPI.h:302:22: note: candidate expects 1 argument, 2 provided
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:31:35: error: no matching function for call to 'SPIClass::setDataMode(int&, int)'
SPI.setDataMode(_xnscs,SPI_MODE0);
^
In file included from /home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:11:0:
/home/pi/Downloads/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src/SPI.h:297:22: note: candidate: static void SPIClass::setDataMode(uint8_t)
inline static void setDataMode(uint8_t dataMode) {
^~~~~~~~~~~
/home/pi/Downloads/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src/SPI.h:297:22: note: candidate expects 1 argument, 2 provided
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:66:31: error: no matching function for call to 'SPIClass::setClockDivider(int&, int)'
SPI.setClockDivider(_xnscs,2);
^
In file included from /home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:11:0:
/home/pi/Downloads/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src/SPI.h:302:22: note: candidate: static void SPIClass::setClockDivider(uint8_t)
inline static void setClockDivider(uint8_t clockDiv) {
^~~~~~~~~~~~~~~
/home/pi/Downloads/arduino-1.8.13/hardware/arduino/avr/libraries/SPI/src/SPI.h:302:22: note: candidate expects 1 argument, 2 provided
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp: In member function 'void Ra8876_Lite::lcdRegWrite(ru8)':
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:133:43: error: 'SPI_CONTINUE' was not declared in this scope
SPI.transfer(_xnscs,RA8876_SPI_CMDWRITE,SPI_CONTINUE);
^~~~~~~~~~~~
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp: In member function 'void Ra8876_Lite::lcdDataWrite(ru8)':
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:140:44: error: 'SPI_CONTINUE' was not declared in this scope
SPI.transfer(_xnscs,RA8876_SPI_DATAWRITE,SPI_CONTINUE);
^~~~~~~~~~~~
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp: In member function 'ru8 Ra8876_Lite::lcdDataRead()':
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:147:43: error: 'SPI_CONTINUE' was not declared in this scope
SPI.transfer(_xnscs,RA8876_SPI_DATAREAD,SPI_CONTINUE);
^~~~~~~~~~~~
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:148:38: error: void value not ignored as it ought to be
ru8 data = SPI.transfer(_xnscs,0xff);
^
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp: In member function 'ru8 Ra8876_Lite::lcdStatusRead()':
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:155:45: error: 'SPI_CONTINUE' was not declared in this scope
SPI.transfer(_xnscs,RA8876_SPI_STATUSREAD,SPI_CONTINUE);
^~~~~~~~~~~~
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:156:37: error: void value not ignored as it ought to be
ru8 data= SPI.transfer(_xnscs,0xff);
^
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp: In member function 'void Ra8876_Lite::lcdDataWrite16bbp(ru16)':
/home/pi/Arduino/libraries/Ra8876_Lite/Ra8876_Lite.cpp:179:44: error: 'SPI_CONTINUE' was not declared in this scope
SPI.transfer(_xnscs,RA8876_SPI_DATAWRITE,SPI_CONTINUE);
^~~~~~~~~~~~
Multiple libraries were found for "Ra8876_Lite.h"
Used: /home/pi/Arduino/libraries/Ra8876_Lite
Not used: /home/pi/Arduino/libraries/olfRa8876_Lite
exit status 1
Error compiling for board Arduino Mega or Mega 2560.

Any help would be appreciated.

Regards,

Brian

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.