1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

TFT library: warning messages in PImage class and strings inside examples now stored in flash to save RAM

This commit is contained in:
Fede85
2013-12-06 11:17:17 +01:00
parent 9b05911525
commit 9a50f9f1fa
4 changed files with 26 additions and 23 deletions

View File

@ -41,10 +41,10 @@ void setup() {
EsploraTFT.stroke(0, 0, 255);
EsploraTFT.println();
EsploraTFT.println("Arduino LCD Bitmap Example");
EsploraTFT.println(F("Arduino LCD Bitmap Example"));
EsploraTFT.stroke(0, 0, 0);
EsploraTFT.println("Open serial monitor");
EsploraTFT.println("to run the sketch");
EsploraTFT.println(F("Open serial monitor"));
EsploraTFT.println(F("to run the sketch"));
// initialize the serial port: it will be used to
// print some diagnostic info
@ -55,9 +55,9 @@ void setup() {
// try to access the SD card. If that fails (e.g.
// no card present), the Esplora's LED will turn red.
Serial.print("Initializing SD card...");
Serial.print(F("Initializing SD card..."));
if (!SD.begin(SD_CS)) {
Serial.println("failed!");
Serial.println(F("failed!"));
Esplora.writeRed(255);
return;
}
@ -85,7 +85,7 @@ void loop() {
return;
}
Serial.println("drawing image");
Serial.println(F("drawing image"));
// get a random location where to draw the image.
// To avoid the image to be draw outside the screen,