Skip to content
Discussion options

You must be logged in to vote

Ok... So it suddenly started working. I have no idea why.

#include "AudioTools.h"
#include "AudioTools/Disk/AudioSourceSDFAT.h"
#include "AudioTools/AudioCodecs/CodecMP3Helix.h"

const char *startFilePath = "/";   // folder to scan
const char *ext = "mp3";           // filter extension

// ---- SD SPI pins (ESP32-S2 Mini) ----
#define SD_CS_PIN    34
#define SD_MISO_PIN  37
#define SD_MOSI_PIN  35
#define SD_SCK_PIN   36

// ---- I2S pins ----
#define I2S_BCK_PIN  40
#define I2S_WS_PIN   39
#define I2S_DATA_PIN 38


SdSpiConfig sdcfg(SD_CS_PIN, DEDICATED_SPI, SD_SCK_MHZ(10) , &SPI);
AudioSourceSDFAT source(startFilePath, ext, sdcfg);//
I2SStream i2s;
MP3DecoderHelix decoder;
AudioPlayer p…

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
1 reply
@JosephYdr
Comment options

Comment options

You must be logged in to vote
14 replies
@pschatzmann
Comment options

@JosephYdr
Comment options

@pschatzmann
Comment options

@JosephYdr
Comment options

Answer selected by JosephYdr
@pschatzmann
Comment options

@JosephYdr
Comment options

@pschatzmann
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants