Managed to get audio/sound working on SC01-Plus via I2S #817
hb020
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is what is needed to get I2S audio out working on a SC01-Plus that uses a NS4168 I2S speaker driver.
2 examples: file playing from LittleFS, or beeps. Used for an alarm clock, so sound just repeats.
You must use a rather low sample rate, as otherwise you'll get a lot of audible glitches. I used 11025. So don't count on hifi.
I also used the WAV format, as it is low on CPU load. MP3 will require another decoder (just swap it out, see
WAVDecoder()
) and will load the CPU more.It has external volume control, that you can drive directly from the UI via
hasp_find_obj_from_page_id()
.in
platformio_override.ini
:in
my_custom.cpp
(you must of course activate custom code):somewhere at the top:
somewhere lower:
Beta Was this translation helpful? Give feedback.
All reactions