# Matrix Rain Tab5

Matrix Rain Clock for M5Stack Tab5 (ESP32-P4): 80-column digital rain on a 1280x720 MIPI-DSI panel, a 7-segment clock the rain refracts through, a touch WiFi setup wizard…

一块 Tab5 上跑的数字雨时钟，纯 C++ 直写面板，没有 LVGL 也没有框架：80 列字符以 16 像素为格往下落，7 段式时钟由横竖矩形拼成，字经过亮着的段时会被推开 4 像素、改色，像被雨折射，穿过去之后还会在 80×45 的辉光缓冲里留残影，八秒多才散。

- id: andjiang0083-matrix-rain-tab5
- author: andjiang0083
- repository: https://github.com/andjiang0083/matrix-rain-tab5
- license: MIT
- shape: square
- scenes: art, home
- boards: M5Stack Tab5 (ESP32-P4)
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/andjiang0083-matrix-rain-tab5/
- html_zh: https://esp32gallery.com/zh/projects/andjiang0083-matrix-rain-tab5/
- json: https://esp32gallery.com/data/catalog/projects/andjiang0083-matrix-rain-tab5.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

```
Eighty columns of glyphs fall down a 1280×720 MIPI-DSI panel, drawn straight to it in C++ without LVGL or any framework. The 7-segment clock is made of rectangles, and a glyph crossing a lit segment is pushed four pixels aside and hue-shifted, so the rain seems to bend; the glyph then leaves a ghost in an 80×45 glow buffer that fades over about eight and a half seconds. The only UI is a 90×34 SET corner, and tapping the screen cycles six character sets, with 91 katakana baked into 16×16 bitmaps. The real trap is the missing video memory, so DSI scan-out, CPU write-back and USB serial fight over PSRAM, and a frame taking over 3 s triggers a restart.
```

## 中文

```
一块 Tab5 上跑的数字雨时钟，纯 C++ 直写面板，没有 LVGL 也没有框架：80 列字符以 16 像素为格往下落，7 段式时钟由横竖矩形拼成，字经过亮着的段时会被推开 4 像素、改色，像被雨折射，穿过去之后还会在 80×45 的辉光缓冲里留残影，八秒多才散。整块屏只右下角一个 90×34 的 SET 角落算 UI，点屏幕切换六套字符集，片假名是提前烘好的 91 个 16×16 位图。真正卡住进度的是 PSRAM 争用：P4 没有独立显存，DSI 扫描、CPU 写回和 USB 串口抢同一条 PSRAM 总线，画面会卡死后重启，所以加了超 3 秒就 esp_restart 的守卫。
```
