Skip to content

Commit

Permalink
Minor tweaks and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgreening committed Feb 2, 2024
1 parent 9c9a37d commit 917389b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions player/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ monitor_filters = ${common.monitor_filters}
[env:atomic14-custom-pcb]
extends = esp32_common
board = esp32-s3-devkitc-1
board_build.arduino.memory_type = qio_opi
; board_build.arduino.memory_type = qio_opi
build_flags =
${common.build_flags}
-DBOARD_HAS_PSRAM
; -DBOARD_HAS_PSRAM
-DUSE_DMA
; Remote Control Pins
-DHAS_IR_REMOTE
Expand Down
2 changes: 0 additions & 2 deletions player/src/Displays/Matrix.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#pragma once

#ifdef LED_MATRIX

#include <Arduino.h>
Expand Down
2 changes: 1 addition & 1 deletion player/src/SDCard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ std::vector<std::string> SDCard::listFiles(const char *folder, const char *exten
bool isVisible = filename[0] != '.';
bool isMatchingExtension = extension == NULL || filename.find(extension) == filename.length() - strlen(extension);
if (isFile && isVisible && isMatchingExtension) {
files.push_back("/sdcard/" + filename);
files.push_back("/sdcard/" + filename);
}
}
// sort the files alphabetically
Expand Down
10 changes: 6 additions & 4 deletions player/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ TFT display;
void setup()
{
Serial.begin(115200);
for(int i = 0; i<10; i++) {
Serial.println(".");
delay(500);
}
Serial.printf("Total heap: %d\n", ESP.getHeapSize());
Serial.printf("Free heap: %d\n", ESP.getFreeHeap());
Serial.printf("Total PSRAM: %d\n", ESP.getPsramSize());
Expand Down Expand Up @@ -197,6 +193,12 @@ void loop()
switch (command)
{
case RemoteCommands::POWER:
// log out RAM usage
Serial.printf("Total heap: %d\n", ESP.getHeapSize());
Serial.printf("Free heap: %d\n", ESP.getFreeHeap());
Serial.printf("Total PSRAM: %d\n", ESP.getPsramSize());
Serial.printf("Free PSRAM: %d\n", ESP.getFreePsram());

videoPlayer->stop();
display.drawTuningText();
Serial.println("POWER");
Expand Down

0 comments on commit 917389b

Please sign in to comment.