Hello All,
Any Pointers or Help would be greatly appreciated. I hope it is a simple overlook since I'm new to the Arduino environment.
I'm stumped! I ordered this display from SainSmart about a year ago and just now tried to use it. I've used Arduino a little, and thought this would be a breeze, NOPE!
I'm using a;
- Genuine Arduino MEGA 2560.
- GeekTech TFT LCD shield v2.0 with SD slot.
- Hannstar HSD050IDW1-A20 5" touchscreen display, with a SSD1963 controller.
I originally tried with the older 1.8.2 Arduino IDE and the 5.0Fb software which came with the display from Sainsmart!
When I compile the unedited Sketch, I get numerous Errors. I have tried loading the whole UTFT folder into the "C:\Program Files (x86)\Arduino\libraries\UTFT" directory. I've used the "Sketch -> Include Library" to download a fresh UTFT library. I have completely uninstalled Arduino and installed the latest version. I have gone to http://www.rinkydinkelectronics.com/ and downloaded the latest thing I could find, including a UTFT_RAW version. All attempts result in compile errors.
Thank You Paul DeMint
Arduino: 1.8.15 (Windows 7), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Users\User\Desktop\0_Sainsmart_Display\5.0Fb\5.0 TFT\MEGA\display\UTFT\examples\Arduino (AVR)\UTFT_Demo_800x480\UTFT_Demo_800x480.ino: In function 'void loop()':
C:\Users\User\Desktop\0_Sainsmart_Display\5.0Fb\5.0 TFT\MEGA\display\UTFT\examples\Arduino (AVR)\UTFT_Demo_800x480\UTFT_Demo_800x480.ino:49:68: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings] myGLCD.print("* Universal Color TFT Display Library ", CENTER, 1);
C:\Users\User\Desktop\0_Sainsmart_Display\5.0Fb\5.0 TFT\MEGA\display\UTFT\examples\Arduino (AVR)\UTFT_Demo_800x480\UTFT_Demo_800x480.ino:52:70: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings] myGLCD.print("http://electronics.henningkarlsen.com", CENTER, 467);*
C:\Users\User\Desktop\0_Sainsmart_Display\5.0Fb\5.0 TFT\MEGA\display\UTFT\examples\Arduino (AVR)\UTFT_Demo_800x480\UTFT_Demo_800x480.ino:69:28: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings] myGLCD.print("Sin", 5, 15);*
C:\Users\User\Desktop\0_Sainsmart_Display\5.0Fb\5.0 TFT\MEGA\display\UTFT\examples\Arduino (AVR)\UTFT_Demo_800x480\UTFT_Demo_800x480.ino:76:28: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings] myGLCD.print("Cos", 5, 27);*
C:\Users\User\Desktop\0_Sainsmart_Display\5.0Fb\5.0 TFT\MEGA\display\UTFT\examples\Arduino (AVR)\UTFT_Demo_800x480\UTFT_Demo_800x480.ino:83:28: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings] myGLCD.print("Tan", 5, 39);*
C:\Users\User\Desktop\0_Sainsmart_Display\5.0Fb\5.0 TFT\MEGA\display\UTFT\examples\Arduino (AVR)\UTFT_Demo_800x480\UTFT_Demo_800x480.ino:273:41: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings] myGLCD.print("That's it!", CENTER, 213);*
C:\Users\User\Desktop\0_Sainsmart_Display\5.0Fb\5.0 TFT\MEGA\display\UTFT\examples\Arduino (AVR)\UTFT_Demo_800x480\UTFT_Demo_800x480.ino:274:46: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings] myGLCD.print("Restarting in a", CENTER, 239);*
C:\Users\User\Desktop\0_Sainsmart_Display\5.0Fb\5.0 TFT\MEGA\display\UTFT\examples\Arduino (AVR)\UTFT_Demo_800x480\UTFT_Demo_800x480.ino:275:45: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings] myGLCD.print("few seconds...", CENTER, 252);*
C:\Users\User\Desktop\0_Sainsmart_Display\5.0Fb\5.0 TFT\MEGA\display\UTFT\examples\Arduino (AVR)\UTFT_Demo_800x480\UTFT_Demo_800x480.ino:279:47: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings] myGLCD.print("Runtime: (msecs)", CENTER, 450);*
In file included from C:\Program Files (x86)\Arduino\libraries\UTFT\UTFT.cpp:41:0: C:\Program Files (x86)\Arduino\libraries\UTFT\hardware/avr/HW_ATmega1280.h:118:35: error: no 'void UTFT::LCD_Write_Bus_8(char)' member function declared in class 'UTFT'void UTFT::LCD_Write_Bus_8(char VL)
In file included from C:\Program Files (x86)\Arduino\libraries\UTFT\UTFT.cpp:47:0: C:\Program Files (x86)\Arduino\libraries\UTFT\hardware/avr/HW_ATmega1280.h:2:6: error: redefinition of 'void UTFT::_hw_special_init()' void UTFT::_hw_special_init()
In file included from C:\Program Files (x86)\Arduino\libraries\UTFT\UTFT.cpp:41:0: C:\Program Files (x86)\Arduino\libraries\UTFT\hardware/avr/HW_ATmega1280.h:2:6: note: 'void UTFT::_hw_special_init()' previously defined here void UTFT::_hw_special_init()
In file included from C:\Program Files (x86)\Arduino\libraries\UTFT\UTFT.cpp:47:0: C:\Program Files (x86)\Arduino\libraries\UTFT\hardware/avr/HW_ATmega1280.h:6:6: error: redefinition of 'void UTFT::LCD_Writ_Bus(char, char, byte)' void UTFT::LCD_Writ_Bus(char VH,char VL, byte mode)
In file included from C:\Program Files (x86)\Arduino\libraries\UTFT\UTFT.cpp:41:0: C:\Program Files (x86)\Arduino\libraries\UTFT\hardware/avr/HW_ATmega1280.h:6:6: note: 'void UTFT::LCD_Writ_Bus(char, char, byte)' previously defined here void UTFT::LCD_Writ_Bus(char VH,char VL, byte mode)
In file included from C:\Program Files (x86)\Arduino\libraries\UTFT\UTFT.cpp:47:0: C:\Program Files (x86)\Arduino\libraries\UTFT\hardware/avr/HW_ATmega1280.h:118:35: error: no 'void UTFT::LCD_Write_Bus_8(char)' member function declared in class 'UTFT' void UTFT::LCD_Write_Bus_8(char VL)
C:\Program Files (x86)\Arduino\libraries\UTFT\hardware/avr/HW_ATmega1280.h:134:6: error: redefinition of 'void UTFT::_set_direction_registers(byte)' void UTFT::_set_direction_registers(byte mode)
In file included from C:\Program Files (x86)\Arduino\libraries\UTFT\UTFT.cpp:41:0: C:\Program Files (x86)\Arduino\libraries\UTFT\hardware/avr/HW_ATmega1280.h:134:6: note: 'void UTFT::_set_direction_registers(byte)' previously defined here void UTFT::_set_direction_registers(byte mode) In file included from C:\Program Files (x86)\Arduino\libraries\UTFT\UTFT.cpp:47:0: