ivannson/radio-gaga — reverse-engineered prompt

Reverse engineered prompt

Build me a simple ESP32 audio player that works like a DIY Yoto style box for kids. I want it to play MP3s from an SD card when an RFID card is tapped, with each card linked to a folder of audio files. It should have normal playback controls, play and pause, next and previous, plus a rotary knob for volume. Please include headphone detection so sound switches automatically when headphones are plugged in, and use an LED to show ready, error, and unknown card states.

I also want an easy setup mode where I can long press the encoder button, scan a card, and assign it to a folder found on the SD card. Save those mappings and basic settings like default volume and WiFi in a settings file automatically. Keep logging clear so I can debug with the serial monitor if something goes wrong. Use the hardware and pin layout from the repo README, and look up any current docs online if you need to.

Want more depth? Deep Reverse