Replies: 2 comments 15 replies
-
|
It seems that you forgot to install a new libhelix version: hence the error message about the missing function! Use something like the follows: // configure SDFAT with CS pin
SdSpiConfig sdcfg(PIN_AUDIO_KIT_SD_CARD_CS, DEDICATED_SPI, SD_SCK_MHZ(10) , &SPI);
AudioSourceSDFAT source(startFilePath, ext, sdcfg);
// Define SPI pins
SPI.begin(PIN_SD_CARD_CLK, PIN_SD_CARD_MISO, PIN_SD_CARD_MOSI, PIN_SD_CARD_CS);ps. the comment about the volume range is wrong: it should be 0.0 - 1.0! |
Beta Was this translation helpful? Give feedback.
-
|
Of course, I should have updated libhelix too. But now it gives the error "error: invalid use of template-name 'audio_tools::AudioSourceSDFAT' without an argument list |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am spent all day trying unsuccessfully to get audiotools working on an esp32s2 mini.
I am using an old version of the library because the new version always raises this error even on the example programs: "error: 'class libhelix::MP3DecoderHelix' has no member named 'setReference'". this old version worked on my esp32 wroom. When I run the following sketch it uploads but prints: "[E] AudioSourceSDFAT.h : 78 - sd.begin failed
[E] AudioSourceSDFAT.h : 111 - Filename is null
[W] AudioPlayer.h : 185 - -> begin: no data found
[E] AudioSourceSDFAT.h : 111 - Filename is null
[E] AudioSourceSDFAT.h : 111 - Filename is null"
I have it wired as follows:
SD_CS_PIN = 34
SD_MISO_PIN = 37
SD_MOSI_PIN = 35
SD_SCK_PIN = 36
and the audio amp as defined.
Beta Was this translation helpful? Give feedback.
All reactions