# Esp32emu

Shared board runtime (display, touch, SD, WiFi, Bluetooth and USB keyboards and mice, LVGL setup screen, web page, console, debugger), CPU cores (68000/68020/68030, Z80…

一套公用的模拟器运行时，把跑老电脑模拟器需要的杂活全包了：屏幕与触摸、SD 卡、带网络对时的 Wi-Fi、蓝牙键鼠、开机设置页、浏览器里管理磁盘镜像的网页和串口控制台…

- id: rlucencic-esp32emu
- author: rlucencic
- repository: https://github.com/rlucencic/esp32emu
- license: MIT
- shape: square
- scenes: games, tools
- boards: M5Stack Tab5 (ESP32-P4)
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/rlucencic-esp32emu/
- html_zh: https://esp32gallery.com/zh/projects/rlucencic-esp32emu/
- json: https://esp32gallery.com/data/catalog/projects/rlucencic-esp32emu.json

## Hardware

Supported hardware: M5Stack Tab5 (ESP32-P4). Confirm the exact board revision and pin map in the upstream repository.

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

## English

```
A shared runtime that handles everything an 8/16/32-bit computer emulator needs on two boards — display, touch, SD card, Wi-Fi with NTP, Bluetooth keyboards and mice, a setup screen, a web page for disk images and a serial console — plus the CPU cores: 68000/68020, Z80, 6502, 65C816, 6809, ARM2 and a uPD765 floppy controller. A machine describes itself in one emu_machine_t struct and emu_run() does the rest; the build target picks the board, esp32s3 for the Makerfabs MaTouch ESP32-S3 7" (1024×600, 8 MB PSRAM) or esp32p4 for the M5Stack Tab5 (1280×720, 32 MB PSRAM). It is ESP-IDF 5.5.4 components, not a standalone app, and powers twelve separate emulator projects including Atari STE, Macintosh, Amstrad CPC, ZX Spectrum and Commodore 64.
```

## 中文

```
一套公用的模拟器运行时，把跑老电脑模拟器需要的杂活全包了：屏幕与触摸、SD 卡、带网络对时的 Wi-Fi、蓝牙键鼠、开机设置页、浏览器里管理磁盘镜像的网页和串口控制台，外加 68000/68020、Z80、6502、65C816、6809、ARM2 这些 CPU 核和一个 uPD765 软驱控制器。一台机器只要填一个 emu_machine_t 结构体，剩下交给 emu_run()，编译目标决定上哪块板：esp32s3 是 Makerfabs MaTouch ESP32-S3 7 英寸（1024×600，8 MB PSRAM），esp32p4 是 M5Stack Tab5（1280×720，32 MB PSRAM）。它是 ESP-IDF 5.5.4 的组件而不是独立应用，被 Atari STE、Macintosh、Amstrad CPC、ZX Spectrum、Commodore 64 等十二个模拟器工程共用。整帧画面按面板高度缩放，MaTouch 是 600 线，Tab5 是 720 线。
```
