Repository navigation
Releases
CYD MP3 Player v1.2.0
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
CYD MP3 Player v1.1.1
CYD MP3 Player v1.1.1
Bluetooth. Connecting to a car exposed a set of faults a speaker never had:
a speaker answers every scan, a car announces itself once and then goes quiet.
Along the way the player learned to remember the last 5 devices and move
between them with one tap.
✨ New
Remembered devices. The last 5 devices you connected to — a speaker,
headphones, a car — are listed on the Bluetooth screen with the connected one
marked. One tap moves between them: it drops the current link and calls the one
you chose. No pairing, and no waiting for a car to advertise itself.
Delete a device. Each saved device has a ✕. It asks first, then drops
the link, removes the pairing from the Bluetooth stack and stops the player
reaching for it again.
Pairing you can see. If the other device shows a six-digit code, the player
shows it too. A refusal is reported on screen instead of a silent wait, and a
connection that gets no answer gives up after 20 seconds with "No answer — tap
it to try again" rather than saying "connecting" for ever.
🔧 Fixed
- Tapping a device now connects to it. Before, the choice was recorded and
the player waited for the scan to report that device a second time. A car
never does, so nothing was ever sent to it. - The connected device is identified correctly. The address was read from
the last scan rather than from the connection, so connecting to a car saved
the speaker's address and name — the car played while the screen named the
speaker, and the next start-up called the wrong device. - Reconnecting works after a disconnection. A known device is called by
address every 15 seconds instead of being scanned for. - A connection the car starts is accepted. The board stopped being
connectable ten seconds after boot, and the stack ignored connection events
while scanning — which a car reports as a failed connection. - Switching devices no longer needs the other one switched off. Any
disconnection used to make the player call the device it had just left,
beating the one you asked for. That now happens only at start-up, once. - The Bluetooth screen stays open while connected. It used to hand straight
back to the player for the rest of any session that began with Pair new. - Pair new searches again instead of quietly reconnecting to a remembered
device that happened to be switched on nearby.
📦 Download
| File | What it is |
|---|---|
cyd-mp3-v1.1.1-4mb.bin |
Full 4 MB image: bootloader, player and WiFi uploader |
SHA256SUMS |
Checksums |
72e70a3d3d89ab3ee09079a6b392589cb0265975fac5151a4bea906e2b07ec0e cyd-mp3-v1.1.1-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.1.1-4mb.binUse your own port: /dev/cu.usbserial-* on macOS, /dev/ttyUSB0 on Linux,
COMx on Windows. Plug in one USB cable only — the board has micro-USB and
USB-C wired 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 and WiFi. Afterwards, calibrate and pair again.
To keep your settings, build from source and use./tools/flash.sh app
instead (see flash.md).
⬆️ Upgrading from 1.1.0
If you keep your settings rather than erasing, a device saved by 1.1.0 may
carry the wrong address — that is the bug this release fixes, and the stored
value cannot be repaired after the fact. If a saved device does not connect,
delete it with ✕ and pair it once more.
📝 Notes
- The title font is not included. Chinese and Japanese titles and menus 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). - Pairing a car: open the car's "connect a device" screen first — a head
unit can only be found while that screen is on. Once paired it is remembered,
and a tap reaches it without that. - Screen blank or garbled? Hold a finger on it while powering on for 8 s to
switch panel type.
🛠 For developers
The player now owns the Bluetooth connection rather than leaving it to the
library: a tap calls the device immediately, the peer address comes from the
connection event, a known device is called by address instead of scanned for,
and chasing the previously connected device is start-up behaviour only. The
reasoning, and the cost — a subclass that reaches into the library's internals
— is in docs/decisions.md.
Full changelog: CHANGELOG.md ·
Design decisions: docs/decisions.md
CYD 2.8" MP3 Player
CYD MP3 Player v1.1.0
A new look system and more responsive touch controls. Pick from 7 styles
and 8 colour themes. Buttons now light up as soon as you touch them, and
brightness and volume can be dragged.
✨ What's new
Styles. A new Style row in Setup changes the shape of buttons, rows and
the progress bar, separately from the colour theme:
| Style | Look |
|---|---|
| Classic | the 1.0.0 look, unchanged |
| Frosted deck | raised pill buttons, progress bar with a handle |
| Hi-fi console | moulded keys, segmented meter, counter-style time |
| Swiss grid | no button frames, hairline grid, one accent colour |
| Cassette pop | thick outlines with hard drop shadows |
| Terminal | framed boxes, fixed-width text, framed background |
| Paper mono | three colours with outlined buttons; easy to read at low brightness |
Choosing a style also switches to the theme it was designed with. You can
still change the theme afterwards.
New themes: Phosphor, Paper and Pop, for 8 in total.
Touch
- Every button, row, arrow and toggle lights up the moment your finger lands.
- Brightness is a slider: drag along it (10–100 %).
- Volume: drag sideways on the Bluetooth / % readout on the player screen.
The + / − buttons still work. - Setup rows show what a tap will do: an arrow opens a screen, a switch
toggles, a slider drags, a plain value cycles. - Panel type asks before switching, and explains how to undo it.
- Dragging slowly never triggers touch calibration by accident.
📦 Download
| File | What it is |
|---|---|
cyd-mp3-v1.1.0-4mb.bin |
Full 4 MB image: bootloader, player and WiFi uploader |
SHA256SUMS |
Checksums |
3046487c9edf4adf256a5f67e86b20ca14bb4bd19b81eb04e343051f85de130f cyd-mp3-v1.1.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-1420 erase-flashesptool --port /dev/cu.usbserial-1420 --baud 115200 write-flash 0x0 cyd-mp3-v1.1.0-4mb.binReplace the port with your own: /dev/ttyUSB0 on Linux, COMx on Windows.
Plug in one USB cable only. The board has micro-USB and USB-C wired to the
same chip, and having both connected breaks the upload.
⚠️ This is a factory reset. The full image wipes saved settings, touch
calibration, the paired speaker and WiFi. After flashing, calibrate and
pair again. To upgrade your own board and keep settings, build from source
with./tools/flash.sh app(see flash.md).
📝 Notes
- Title font not included. Chinese/Japanese titles and menus need
/.sys/cjk16.vlwon the SD card. Its source font can't be redistributed,
so generate your own withtools/gen_cjk_font.py(see README, step 2). - The first boot takes a few extra seconds while the new menu text is
prepared on the card. This happens once. - Screen blank or garbled? Hold a finger on the screen while powering on
for 8 s to switch panel type.
🛠 For developers
- The look is now defined as data.
tokens.hholds sizes, the theme holds 20
colour roles, andstyle.cpphas one table row per style. Adding a style
needs no drawing code. - A shared component set (rows, switch, slider, chip, pager, toggles, dialog,
toast) replaces controls each screen used to draw itself. make_release.shnow checks that each app slot holds the right program.
Previously it only checked that the uploader was somewhere in the file, which
let through an image that locks a board into upload mode.
Tested on an ESP32-2432S028R (ST7789) with a JBL Flip 4.
Full changelog: CHANGELOG.md ·
Design decisions: docs/decisions.md