#35 enable PSRAM

This commit is contained in:
Thomas Ballmann 2020-07-31 09:33:45 +02:00
parent 949fcf3821
commit b52ea4c056
2 changed files with 8 additions and 2 deletions

View File

@ -6,6 +6,8 @@ framework = arduino
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
board_build.partitions = partitions_pd.csv
build_flags = -DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
# OTA
;upload_port = 192.168.178.60

View File

@ -79,7 +79,7 @@ void setupApp()
doc["wifi"]["gateway"] = WiFi.gatewayIP().toString();
doc["device"]["id"] = DeviceId;
doc["device"]["heap"] = ESP.getFreeHeap();
doc["device"]["time"] = time(NULL);
doc["device"]["bootCycle"] = deviceGetBootCount();
doc["device"]["screen"]["width"] = 640;
doc["device"]["screen"]["height"] = 384;
@ -87,7 +87,11 @@ void setupApp()
doc["device"]["fs"]["total"] = SPIFFS.totalBytes();
doc["device"]["fs"]["used"] = SPIFFS.usedBytes();
doc["device"]["fs"]["free"] = SPIFFS.totalBytes() - SPIFFS.usedBytes();
doc["device"]["time"] = time(NULL);
doc["device"]["heap"]["total"] = ESP.getHeapSize();
doc["device"]["heap"]["free"] = ESP.getFreeHeap();
doc["device"]["psram"]["total"] = ESP.getPsramSize();
doc["device"]["psram"]["free"] = ESP.getFreePsram();
doc["playlist"]["current"] = PlaylistGetCurrentFace();
doc["playlist"]["remaining"] = PlaylistGetRemainingTimeMs() / 1000;