Move string to PROGMEM, and remove unused return value

This commit is contained in:
Reed Nightingale 2020-01-26 10:42:20 -08:00
parent c38460576b
commit fea7b8d868

View File

@ -162,7 +162,7 @@ PDQ_ILI9341 tft;
#include "nano_font.h" #include "nano_font.h"
bool xpt2046_Init(){ void xpt2046_Init(){
pinMode(CS_PIN, OUTPUT); pinMode(CS_PIN, OUTPUT);
digitalWrite(CS_PIN, HIGH); digitalWrite(CS_PIN, HIGH);
} }
@ -246,7 +246,8 @@ void setupTouch(){
int x1, y1, x2, y2, x3, y3, x4, y4; int x1, y1, x2, y2, x3, y3, x4, y4;
displayClear(DISPLAY_BLACK); 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 // TOP-LEFT
displayHline(10,20,20,DISPLAY_WHITE); displayHline(10,20,20,DISPLAY_WHITE);