I'm working on learning how to use a LCD Touch Screen and I can't get my code to compile. Sorry if this is a common error, I did do my best to search around and find a solution on my own but I didn't have much luck.
Here is my error
Arduino: 1.8.14 Hourly Build 2020/09/23 10:35 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
/Users/michelleebers/Documents/Arduino/HomeScreen/HomeScreen.ino: In function 'void setup()':
/Users/michelleebers/Documents/Arduino/HomeScreen/HomeScreen.ino:20:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
myGLCD.print("Hello World!", CENTER, 10);
^
/var/folders/7x/vckq1tvs6017c06rwzmjhf9c0000gn/T//ccwWJSrZ.ltrans0.ltrans.o: In function main': /Users/michelleebers/Library/Arduino15/packages/arduino/hardware/avr/1.8.3/cores/arduino/main.cpp:46: undefined reference to
loop'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Mega or Mega 2560.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Code
#include <UTFT.h>
#include <URTouch.h>
UTFT myGLCD (SSD1963_800ALT,38,39,40,41);
URTouch myTouch (6,5,4,3,2);
extern uint8_t SmallFont [];
extern uint8_t BigFont [];
extern uint8_t SevenSegNumFont [];
void setup() {
myGLCD.InitLCD();
myGLCD.clrScr();
myTouch.InitTouch();
myTouch.setPrecision(PREC_MEDIUM);
myGLCD.setBackColor(0,0,0);
myGLCD.setColor(255,255,255);
myGLCD.setFont(BigFont);
myGLCD.print("Hello World!", CENTER, 10);
}
Thank you for any and all help