I am trying to make this: S.M.A.R.T. Alarm Clock - Make: and I can't get the code to display the proper things on the screen.
I am using an Arduino Yún with the TFT Touch Shield from Seed Studio.
The code is attached.
When I compile it, I get these warning messages:
/Users/eli2/Downloads/SmartAlarmClock-master/SmartAlarmClock/SmartAlarmClock.ino: In function 'void setup()':
/Users/eli2/Downloads/SmartAlarmClock-master/SmartAlarmClock/SmartAlarmClock.ino:95:60: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Tft.drawString("LOADING...", MAX_X-10, 10, 3, CLOCK_COLOR);
^
/Users/eli2/Downloads/SmartAlarmClock-master/SmartAlarmClock/SmartAlarmClock.ino: In function 'void loop()':
/Users/eli2/Downloads/SmartAlarmClock-master/SmartAlarmClock/SmartAlarmClock.ino:165:65: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Tft.drawString("REFRSH", REFRESH_X+30, REFRESH_Y+5, 2, BLACK);
^
/Users/eli2/Downloads/SmartAlarmClock-master/SmartAlarmClock/SmartAlarmClock.ino: In function 'void draw_display(int, int)':
/Users/eli2/Downloads/SmartAlarmClock-master/SmartAlarmClock/SmartAlarmClock.ino:354:59: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Tft.drawString("ALARM:", MAX_X-50, 215, 2, CLOCK_COLOR);
^
/Users/eli2/Downloads/SmartAlarmClock-master/SmartAlarmClock/SmartAlarmClock.ino:357:69: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Tft.drawString("CANCEL", CANCEL_X+30, CANCEL_Y+5, 2, CLOCK_COLOR);
^
/Users/eli2/Downloads/SmartAlarmClock-master/SmartAlarmClock/SmartAlarmClock.ino:361:69: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Tft.drawString("REFRSH", REFRESH_X+30, REFRESH_Y+5, 2, CLOCK_COLOR);
^
Sketch uses 20,350 bytes (70%) of program storage space. Maximum is 28,672 bytes.
Global variables use 877 bytes (34%) of dynamic memory, leaving 1,683 bytes for local variables. Maximum is 2,560 bytes.
And nothing is displayed on the screen. Any help?
SmartAlarmClock.ino (12.4 KB)