Hello all,
I am a new user of Arduino IDE. I want to write a program to use the TJCTM24028-SPI LCD touchscreen and I am trying to run an example program that I found on the internet (attached). The standard Adafruit_ILI9341.cpp, Adafruit_ILI9341.h, Adafruit_ILI9341 esp.h and SPI.h are all in the same folder with the so they open together. I get the following errors:
Arduino: 1.8.3 (Windows 7), Board: "Arduino/Genuino Uno"
WARNING: Category '' in library XPT2046 is not valid. Setting to 'Uncategorized'
E:\Microcontroller Programming\tft28esp\XPTCalibrate\XPTCalibrate.ino: In function 'void setup()':
XPTCalibrate:56: error: 'class SPIClass' has no member named 'setFrequency'
SPI.setFrequency(ESP_SPI_FREQ);
^
XPTCalibrate:56: error: 'ESP_SPI_FREQ' was not declared in this scope
SPI.setFrequency(ESP_SPI_FREQ);
^
Multiple libraries were found for "SPI.h"
Used: C:\Users\mh\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.23\libraries\SPI
Not used: C:\Users\mh\Documents\Arduino\libraries\SPI-master
exit status 1
'class SPIClass' has no member named 'setFrequency'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Please help me out with any suggestions or changes to this program. I really appreciate your time and help.
XPTCalibrate.ino (1.42 KB)