![]() ![]() Serial.Dan, this work you have done is exactly what I’ve been looking for so thank you!!! Serial.printf("Listing directory: %s\n", dirname) Void littleFsListDir(const char * dirname) Here is a nice function that opens a directory and lists files -works with LittleFS.h!!! Maybe someone has been here dun that… hope This is my first time trying to use LittleFS… Id3->RegisterMetadataCB(MDCallback, (void*)"ID3TAG") Įverything compiles and uploads, got me beat… geeez If(LittleFS.exists("/pno-cs.mp3"))Serial.println("file exists") įile = new AudioFileSourceSPIFFS("/pno-cs.mp3") Serial.printf("Sample MP3 playback begins.\n") If element have a size display It else write 0 Serial.print("dir=") Serial.println(dir.name()) if(LittleFS.format())Serial.println("formatted") ![]() If (LittleFS.begin()) Serial.println("LittleFS mounted") Serial.printf("ID3 callback for: %s = '", type) Void MDCallback(void *cbData, const char *type, bool isUnicode, const char *string) Called when a metadata event occurs (i.e. Use the "Tools->ESP8266/ESP32 Sketch Data Upload" menu to write the MP3 to SPIFFS To run, set your ESP8266 build to 160MHz, and include a SPIFFS of 512KB or greater. I doubled up on the files uploaded to make them combined to be pretty large, but it only shows a couple blocks and doesnt list any of the. Then I try to verify the files are there- and I get: reset : -before default_reset -after hard_reset data : /home/jack/Documents/sketchbook/PlayMP3FromLittleFS/data ![]() I can upload all the files no problem–looks like that works– I am trying to plaback mp3 files from flash LittleFS file system… ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |