This commit is contained in:
Lubos Petrovic
2020-11-25 16:32:24 +01:00
parent 0774095676
commit c3090a0be6
4 changed files with 8 additions and 8 deletions

View File

@@ -2,8 +2,8 @@
// SELECT HARDWARE !!!!
////////////////////////////////////////////////////////////
#define BOARD_TTGO_T4
//#define BOARD_M5STACK_CORE
//#define BOARD_TTGO_T4
#define BOARD_M5STACK_CORE
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////

Binary file not shown.

Binary file not shown.

View File

@@ -1811,12 +1811,12 @@ void setup(void) {
if (psramFound())
psramUsed = true;
#endif
if (!psramUsed) {
displayMessage("SRAM support required", "Compile with ESP32 Wrover CPU");
delay(60000);
ESP.restart();
}
spr.setColorDepth(16);
// if (!psramUsed) {
// displayMessage("SRAM support required", "Compile with ESP32 Wrover CPU");
// delay(60000);
// ESP.restart();
// }
spr.setColorDepth((psramUsed) ? 16 : 8);
spr.createSprite(320, 240);
redrawScreen();