Repository navigation
CYD MP3 Player v1.2.0
Playlists. Play from ★ Favourites, a folder or a playlist, and make
playlists from your phone without writing a file. The WiFi pages are now behind
a passcode.
✨ New
Playlists. Tap the list name at the top of the Library to pick what to play:
| List | What is in it |
|---|---|
| All songs | the whole library |
| ★ Favourites | every song you starred — hold any song, or the title on the player |
| a folder | every song in that folder of /music, with its subfolders |
| a playlist | an .m3u / .m3u8 file in /playlists, in its order |
Shuffle, repeat, next and previous stay inside the list you pick, the current
song keeps playing if it is in it, and the choice survives a restart.
Playlist editor in the browser. Upload mode has a Playlists tab: make,
rename, reorder and delete playlists and edit ★ Favourites by searching your
songs by title, artist or folder — Add all shown turns a folder search into
a whole album. .m3u files from a PC still work, with paths relative to
/music, to the playlist, or a full D:\Music\… path.
Web passcode. Every page of upload mode asks for a 6-digit passcode — 000000
until you change it on the WiFi tab. One browser at a time; after three wrong
tries the wait doubles from 30 s up to 15 min. Setup ▸ Web passcode shows it
on the player and resets it.
🔧 Fixed
- Reboot loop when resuming some songs. Resuming or seeking jumps to a byte
worked out from the bitrate, which can land mid-frame; on one MP3 the decoder
never came back from what it found there, and because the resume point sent it
back on every boot, the board reset forever. Jumps now land on a real frame,
and after any crash or watchdog reset the player starts the next song instead
of the spot it was on. - "Upload music (WiFi" lost its bracket in Setup — the label was cut off by
its row. The row is now just Upload music.
⚠️ Known
The hotspot is still an open network. WiFi passwords need at least 8
characters, so the 6-digit passcode guards the pages rather than the network.
No playback over WiFi. Playing while on WiFi (a phone remote or Home
Assistant) was built and tested, but with Bluetooth audio it needs ~40 KB more
memory than this board has, even with the screen and extras stripped, so it is
not in this release. The measurements are in docs/decisions.md.
📦 Download
| File | What it is |
|---|---|
cyd-mp3-v1.2.0-4mb.bin |
Full 4 MB image: bootloader, player and the WiFi uploader |
SHA256SUMS |
Checksums |
4a6fb37fdac9b43d08bfd4cb757feb0b3809da0139a01824a6fc4c9a89d4612c cyd-mp3-v1.2.0-4mb.bin
🔌 Flashing
For the ESP32-2432S028R (2.8" "cheap yellow display"), either ST7789 or
ILI9341 panel. You only need esptool:
pip install esptoolesptool --port /dev/cu.usbserial-1440 erase-flashesptool --port /dev/cu.usbserial-1440 --baud 115200 write-flash 0x0 cyd-mp3-v1.2.0-4mb.binUse your own port: /dev/cu.usbserial-* on macOS, /dev/ttyUSB0 on Linux,
COMx on Windows. Plug in one USB cable only — boards with both micro-USB
and USB-C wire them to the same chip, and both at once breaks the upload.
⚠️ This is a factory reset. The full image clears saved settings, touch
calibration, paired devices, WiFi and the web passcode (back to 000000). The SD card — songs, playlists, ★ Favourites — is untouched.
To keep your settings, build from source and use./tools/flash.sh app
instead (see flash.md).
⬆️ Upgrading from 1.1.x
Nothing to do beyond flashing. The player creates /playlists on the card by
itself, and starts on All songs as before. After a factory reset, set
Setup ▸ Audio out back to Bluetooth if you use a Bluetooth device, and save
your home WiFi again on upload mode's WiFi tab.
📝 Notes
- The title font is not included. Chinese and Japanese titles, menus and
playlist names need/.sys/cjk16.vlwon the SD card. Its source font cannot
be redistributed, so generate your own withtools/gen_cjk_font.py
(README, step 2). - New playlists made on a PC or in upload mode appear in the player's list
after Done (it restarts). - Screen blank or garbled? Hold a finger on it while powering on for 8 s to
switch panel type.
🛠 For developers
- Playlists are a queue of library indices (
uint16_teach) that
audio.cppplays in order or shuffled, so shuffle and repeat needed no new
logic. Folder and playlist names stay on the card in/.sys/sources.txt;
Favourites are kept by path, with a CRC per favourite in RAM. - The playlist editor works in the browser: the uploader streams the song
list and the library index's titles, and the page resolves.m3uentries
with the same rules as the player (playlist.cpp'sresolveEntry). - The passcode (
app/auth.cpp) wraps every route, uploads included, in a
cookie check; one session, refused rather than taken over; backoff counted in
RAM.
Full changelog: CHANGELOG.md ·
Design decisions: docs/decisions.md