ZX Spectrum Emulator for M5Stack Cardputer

Published at : 18 Dec 2025

🎮 ZX Spectrum Emulator on M5Stack Cardputer

Ported the legendary ESP32 Rainbow emulator to the compact Cardputer with the help of neural networks (ChatGPT and Claude).

⚙️ Technical Details:
• Device: M5Stack Cardputer v1.1
• Platform: ESP32-S3
• Z80 CPU @ 3.5 MHz (emulated)
• 16KB ROM + 48KB RAM
• Stable 50 FPS
• Interrupt Mode 1 (50 Hz)

⌨️ Controls:
• Opt + P - Pixel Perfect
• Opt + Z - Zoom Cycle
• Opt + up/down - Pan V
• Opt + left/right - Pan H
• ESC - Menu
• Opt + [+]/[-] - Volume
• Opt + M - Mute
• Opt + J - Joystick mode (Joy→QAOP+Space)
• Opt + ESC - Reset
• TAB - Pause/Resume
• Ctrl - Screenshot (BMP)

ZX Spectrum Buttons:
• Fn = SYMBOL SHIFT
• Aa = CAPS SHIFT
• [_] = BREAK SPACE
• Ok = ENTER
• Other keys work as on original ZX Spectrum!

GitHub Project:
• https://github.com/AndyAiCardputer/zx-spectrum-cardputer

Special thanks
• ESP32 Rainbow (original): https://github.com/atomic14/esp32-zxspectrum
• ESP32 Rainbow Author: Alvaro Alea Fernandez (atomic14)
• Z80 CPU core: Santiago Romero Iglesias
• ZX Spectrum 48K ROM: Sinclair Research Ltd.
• M5Stack for the excellent Cardputer https://m5stack.com/
• Emulator developer community

Development: Andy + AI (ChatGPT, Claude)

#ZXSpectrum #ESP32 #Cardputer #M5Stack #Emulator #RetroGaming