From fea7b8d86803d3cda517f5c696c83a6e63bdf97c Mon Sep 17 00:00:00 2001 From: Reed Nightingale Date: Sun, 26 Jan 2020 10:42:20 -0800 Subject: [PATCH] Move string to PROGMEM, and remove unused return value --- nano_gui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nano_gui.cpp b/nano_gui.cpp index 9efe8ec..fdfdfa3 100644 --- a/nano_gui.cpp +++ b/nano_gui.cpp @@ -162,7 +162,7 @@ PDQ_ILI9341 tft; #include "nano_font.h" -bool xpt2046_Init(){ +void xpt2046_Init(){ pinMode(CS_PIN, OUTPUT); digitalWrite(CS_PIN, HIGH); } @@ -246,7 +246,8 @@ void setupTouch(){ int x1, y1, x2, y2, x3, y3, x4, y4; displayClear(DISPLAY_BLACK); - displayText("Click on the cross", 20,100, 200, 50, DISPLAY_WHITE, DISPLAY_BLACK, DISPLAY_BLACK); + strncpy_P(b,(const char*)F("Click on the cross"),sizeof(b)); + displayText(b, 20,100, 200, 50, DISPLAY_WHITE, DISPLAY_BLACK, DISPLAY_BLACK); // TOP-LEFT displayHline(10,20,20,DISPLAY_WHITE);