Compare commits

..

No commits in common. "M5Stick-Launcher_patch" and "original" have entirely different histories.

5 changed files with 4 additions and 6 deletions

View file

@ -347,7 +347,7 @@ start:
}
case 1:
{
auto path = loopSD(SD);
auto path = loopSD(SD_MMC);
if (path.equals(""))
{
redraw = true;

View file

@ -1,7 +1,6 @@
#pragma once
#include <FS.h>
#include <SD.h>
#include <SD_MMC.h>
#define MAXFILES 256

View file

@ -303,7 +303,7 @@ void loadFile(void *parameter)
}
else if (ext.compare(".prg") == 0)
{
uint16_t addr = sdcard.loadFile(SD, path.c_str(), ram);
uint16_t addr = sdcard.loadFile(SD_MMC, path.c_str(), ram);
if (sdcard.loadAddr == 0)
{
ESP_LOGI(TAG, "error loading file");

View file

@ -36,8 +36,8 @@ bool SDCard::init()
vTaskDelay(500 / portTICK_PERIOD_MS);
pinMode(PWR_EN_PIN, OUTPUT);
digitalWrite(PWR_EN_PIN, HIGH);
SPI.begin(SD_SCLK_PIN, SD_MISO_PIN, SD_MOSI_PIN);
bool rlst = SD.begin(PWR_EN_PIN, SPI, 4000000, "/sdcard", 5, false);
SD_MMC.setPins(SD_SCLK_PIN, SD_MOSI_PIN, SD_MISO_PIN);
bool rlst = SD_MMC.begin("/sdcard", true);
if (!rlst)
{
return false;

View file

@ -18,7 +18,6 @@
#pragma once
#include <FS.h>
#include <SD.h>
#include <SD_MMC.h>
#include <cstdint>