Update for ESP8266

ESP32 printf() can handle String type but ESP8266 cannot.
This commit is contained in:
Bodmer 2019-01-31 01:17:19 +00:00 committed by GitHub
parent caef4519f3
commit 33d9313113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ void loop(void) {
tft.getSetup(user); // tft.getSetup(user); //
Serial.printf("\n[code]\n"); Serial.printf("\n[code]\n");
String ver = user.version;
Serial.printf("TFT_eSPI ver = " + user.version) +"\n"); Serial.println("TFT_eSPI ver = " + ver +"\n");
Serial.printf("Processor = ESP%i\n", user.esp, HEX); Serial.printf("Processor = ESP%i\n", user.esp, HEX);
Serial.printf("Frequency = %i MHz\n", ESP.getCpuFreqMHz()); Serial.printf("Frequency = %i MHz\n", ESP.getCpuFreqMHz());
#ifdef ESP8266 #ifdef ESP8266