Members
On page==0 (HOME page) is two names printed next to one another on the tft screen. I have two rows of 4 names but will expand that later to more names.
In order for me to change the name on page==0 I touch the name and page==1 will pop up with a selection of names.
When I then select a name, a number is printed on the left top corner of the tft. When 'Save' is touched this number is saved to an address in the ext eeprom.
Reading back the name for display on page==0: I read the address and convert the stored number to a name.
I get an error when all of this compile but nothing is highlighted. Not sure if it might be the warning that is finally catching up with me.
Any help is appreciated.
Arduino: 1.8.5 (Windows 10), Board: "Arduino Due (Programming Port)"
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino: In function 'void HomePage()':
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:198:72: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn.initButton(&tft, 55, 15, 100, 30, CYAN, DARKGREY, BLACK, "", 2);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:200:74: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn1.initButton(&tft, 160, 15, 100, 30, CYAN, DARKGREY, BLACK, "", 2);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:202:76: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn2.initButton(&tft, 280, 15, 50, 30, CYAN, DARKGREY, BLACK, "ON", 1);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:205:73: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn3.initButton(&tft, 55, 50, 100, 30, CYAN, DARKGREY, BLACK, "", 2);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:207:75: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn4.initButton(&tft, 160, 50, 100, 30, CYAN, DARKGREY, BLACK, "", 1);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:209:76: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn5.initButton(&tft, 280, 50, 50, 30, CYAN, DARKGREY, BLACK, "ON", 1);
^
In file included from C:\Users\Johan\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\cores\arduino/Arduino.h:31:0,
from sketch\eeprom_ExtMemory.ino.cpp:1:
C:\Users\Johan\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\cores\arduino/avr/pgmspace.h:34:23: error: expected primary-expression before ')' token
#define PSTR(str) (str)
^
C:\Users\Johan\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\cores\arduino/WString.h:38:74: note: in expansion of macro 'PSTR'
#define F(string_literal) (reinterpret_cast<const __FlashStringHelper *>(PSTR(string_literal)))
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:221:18: note: in expansion of macro 'F'
post = getName(F());
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino: In function 'void Data()':
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:246:76: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn9.initButton(&tft, 50, 80, 90, 40, CYAN, DARKGREY, BLACK, "Tina", 2);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:248:77: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn10.initButton(&tft, 145, 80, 90, 40, CYAN, DARKGREY, BLACK, "Ted", 2);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:250:79: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn11.initButton(&tft, 250, 80, 90, 40, CYAN, DARKGREY, BLACK, "James", 2);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:252:79: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn12.initButton(&tft, 50, 130, 90, 40, CYAN, DARKGREY, BLACK, "Tanja", 2);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:254:80: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn13.initButton(&tft, 145, 130, 90, 40, CYAN, DARKGREY, BLACK, "Cliff", 2);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:256:82: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn14.initButton(&tft, 250, 130, 90, 40, CYAN, DARKGREY, BLACK, "Jeffrey", 2);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:260:78: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn16.initButton(&tft, 280, 200, 60, 40, CYAN, DARKGREY, BLACK, "<<<", 2);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:262:79: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn17.initButton(&tft, 122, 200, 90, 40, CYAN, DARKGREY, BLACK, "Save", 2);
^
C:\Users\Johan\Documents\Arduino\eeprom_ExtMemory\eeprom_ExtMemory.ino:264:79: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
on_btn18.initButton(&tft, 210, 200, 60, 40, CYAN, DARKGREY, BLACK, "Home", 2);
^
exit status 1
Error compiling for board Arduino Due (Programming Port).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
eeprom_ExtMemory.ino (8.69 KB)