Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading from SD card - Arduino IDE example #7

Open
trackme518 opened this issue Nov 13, 2022 · 0 comments
Open

Reading from SD card - Arduino IDE example #7

trackme518 opened this issue Nov 13, 2022 · 0 comments

Comments

@trackme518
Copy link

Hi,
I wanted to play files from SD card and use Arduino IDE to program it. After some digging I was able to use SdFat V2 from https://github.com/greiman/SdFat and found a bug in Audio.cpp from ESP32-audioI2S lib. I have tested it's working playing mp3 files (can't read wav yet thought). I am attaching the example for Arduino IDE.

SdFat_example_v2.zip

Instructions:

  • install SdFat V2 from https://github.com/greiman/SdFat
  • activate "SDFATFS_USED" in Audio.h
  • activate "#define USE_UTF8_LONG_NAMES 1" in SdFatConfig.h
  • you need to fix bug in Audio.cpp, line 2870 from ESP32-audioI2S lib, replace:
  • availableBytes = min(availableBytes, audiofile.size() - byteCounter);
  • with:
  • availableBytes = min(availableBytes, (uint32_t)audiofile.size() - byteCounter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant