# ESP32 S3 Handheld Gaming Console

Multi-platform retro handheld gaming console for ESP32-S3 with 15 emulation engines, procedural BMO companion OS, and custom hardware.

洞洞板手焊出来的一台掌机，核心是 ESP32-S3-N16R8：240×320 的 ST7789 屏走 80 MHz SPI，Core 0 专门跑显示线程，双缓冲放在 PSRAM 里。

- id: mahmoudmamdouh3-esp32-s3-handheld-gaming-console
- author: MahmoudMamdouh3
- repository: https://github.com/MahmoudMamdouh3/ESP32-S3-Handheld-Gaming-Console
- license: MIT
- shape: square
- scenes: games
- boards: ESP32-S3
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/mahmoudmamdouh3-esp32-s3-handheld-gaming-console/
- html_zh: https://esp32gallery.com/zh/projects/mahmoudmamdouh3-esp32-s3-handheld-gaming-console/
- json: https://esp32gallery.com/data/catalog/projects/mahmoudmamdouh3-esp32-s3-handheld-gaming-console.json

## Hardware

Supported hardware: ESP32-S3. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32-S3。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
A soldered perfboard build around an ESP32-S3-N16R8 drives a 240×320 ST7789 over 80 MHz SPI from a dedicated display core, with PSRAM holding double buffers. Emulation cores for Game Boy, Game Boy Color, NES, Sega Master System and Game Gear, plus DOOM, launch from a carousel; a library index cuts enumerating 2,000 ROMs from about 3.5 s to under 15 ms, and 64×64 box art streams from microSD. Two ROMs are baked into flash so the console runs without a card. The BMO mascot is a procedural signed distance field with spring physics and 16 expressions. Arduino CLI compiles the BmoGameboy sketch against core 3.3.11 with FlashMode=qio and PSRAM=opi — OPI flash settings give a black screen and cache fault.
```

## 中文

```
洞洞板手焊出来的一台掌机，核心是 ESP32-S3-N16R8：240×320 的 ST7789 屏走 80 MHz SPI，Core 0 专门跑显示线程，双缓冲放在 PSRAM 里。游戏库用转盘切换，里面有 Game Boy、Game Boy Color、NES、世嘉 Master System/Game Gear 和 DOOM 的模拟核心；二元缓存文件让 2000 个 ROM 的枚举从约 3.5 秒降到 15 毫秒以内，64×64 封面也从 microSD 边读边解。两个 ROM 直接烧进 flash，没有卡也能开机玩。BMO 吉祥物是程序化的有向距离场渲染，带弹簧物理和 16 种表情。编译用 Arduino CLI 对 3.3.11 内核，需带 Adafruit_GFX 和 Adafruit_ST7789 两个库，FlashMode=qio 配 PSRAM=opi；把 FlashMode 改成 OPI 会黑屏并触发 flash 缓存故障。存档有 1 到 5 号多个槽位，靠 CRC32 校验。
```
