Skip to content

Commit

Permalink
Added define for PSRAM
Browse files Browse the repository at this point in the history
  • Loading branch information
rzeldent committed Dec 9, 2023
1 parent 226f8f1 commit bb3ae50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ board = esp32-s3-devkitc-1

build_flags =
${env.build_flags}
-D BOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
# Smartdisplay selection
#-D ESP32_1732S019N
#-D ESP32_1732S019C
Expand Down
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ void OnButtonClicked(lv_event_t *e)

void setup()
{
delay(250);
Serial.begin(115200);
Serial.setDebugOutput(true);

log_i("CPU: %s rev%d, CPU Freq: %d Mhz, %d core(s)", ESP.getChipModel(), ESP.getChipRevision(), getCpuFrequencyMhz(), ESP.getChipCores());
log_i("Free heap: %d bytes", ESP.getFreeHeap());
log_i("Free PSRAM: %d bytes", ESP.getPsramSize());
log_i("SDK version: %s", ESP.getSdkVersion());

#ifdef HAS_RGB_LED
Expand Down

0 comments on commit bb3ae50

Please sign in to comment.