I am try to get going on the UTFT lib but cant get anywhere.
I have reduced the code to this:
#include <UTFT.h>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
The UTFY folder is in Arduino/libraries
Here is the error message Any Ideas, can it be compatability with the IDE?
Arduino: 1.6.7 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
C:\Users\Bill\Documents\Arduino\libraries\UTFT\DefaultFonts.c:21:14: error: variable 'SmallFont' must be const in order to be put into read-only section by means of 'attribute((progmem))'
fontdatatype SmallFont[1144] PROGMEM={
^
C:\Users\Bill\Documents\Arduino\libraries\UTFT\DefaultFonts.c:125:14: error: variable 'BigFont' must be const in order to be put into read-only section by means of 'attribute((progmem))'
fontdatatype BigFont[3044] PROGMEM={
^
C:\Users\Bill\Documents\Arduino\libraries\UTFT\DefaultFonts.c:234:14: error: variable 'SevenSegNumFont' must be const in order to be put into read-only section by means of 'attribute((progmem))'
fontdatatype SevenSegNumFont[2004] PROGMEM={
^
exit status 1
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.