🌐 English | Русский
Arduino library for controlling UART-based MP3 player modules (e.g. boards built on the JQ8400 chip).
- Download: https://github.com/Alash-electronics/AlashUartMP3
- In the Arduino IDE: Sketch → Include Library → Add .ZIP Library…
- Select the downloaded
AlashUartMP3.zip - Examples are now available under File → Examples → AlashUartMP3 → HelloWorld
AlashUartMP3 works with any object that implements the Stream interface — a hardware Serial port, SoftwareSerial, or an ESP32's extra hardware UARTs.
#include <AlashUartMP3.h>
AlashUartMP3 mp3(mySerial);#include <AlashUartMP3.h>
AlashUartMP3 mp3(Serial2);#include <AlashUartMP3.h>
AlashUartMP3 mp3(mySerial); // SoftwareSerial
#include <AlashUartMP3.h>
AlashUartMP3 mp3(Serial); // hardware Serial
#include <AlashUartMP3.h>
AlashUartMP3 mp3(Serial2); // ESP32 second hardware UARTHelloWorld/HelloWorld_ESP32— minimal init and playbackFullDemo— walkthrough of the full APIPlayByNumber— play a specific track by indexRandomPlay— shuffle playbackSpecialAnnouncement— interrupt playback with a priority track