# ESP32 Pet PC

A Commodore PET-style desk terminal on an ESP32-C6: clock, weather, Home Assistant and two configurable keys on a 128x64 OLED — BASIC boot, tape-loading weather, 10 PRINT…

一台做成 Commodore PET 模样的桌面小终端，用的是 Waveshare ESP32-C6-Zero，配一块 128×64 的 I²C OLED 和三个 MX 轴机械键。

- id: krasnov777-esp32-pet-pc
- author: Krasnov777
- repository: https://github.com/Krasnov777/esp32-pet-pc
- license: MIT
- shape: square
- scenes: games, art, home
- boards: ESP32-C6
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/krasnov777-esp32-pet-pc/
- html_zh: https://esp32gallery.com/zh/projects/krasnov777-esp32-pet-pc/
- json: https://esp32gallery.com/data/catalog/projects/krasnov777-esp32-pet-pc.json

## Hardware

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

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

## English

```
A small desk box shaped like a Commodore PET: a Waveshare ESP32-C6-Zero, a 128×64 I²C OLED and three MX-style keys. It opens with a BASIC banner, pretends to load the weather from tape, and idles into a `10 PRINT` maze. Seven screens cover a PETSCII block clock, a plain clock, weather, a READY. prompt, live data listed as a BASIC program, Home Assistant and system status. The outer keys take separate press and hold actions — an HTTP request, a screen jump, an HA light or scene. Everything is configured from the device's own web page, which has no password, so it belongs on a network you trust. Weather comes from Open-Meteo without a key.
```

## 中文

```
一台做成 Commodore PET 模样的桌面小终端，用的是 Waveshare ESP32-C6-Zero，配一块 128×64 的 I²C OLED 和三个 MX 轴机械键。开机先放 BASIC 启动横幅，读天气时屏幕上会出现 PRESS PLAY ON TAPE，闲下来就跑 10 PRINT 的迷宫做屏保。屏幕有七种：PETSCII 方块钟、普通时钟、天气、READY. 提示符、把实时数据排成 BASIC 列表、Home Assistant 和系统状态。两侧按键的短按和长按都能自定，可以发 HTTP 请求、跳屏、开关 HA 灯或跑场景。所有设置都在设备自带网页上改，不用装 App；网页和 API 没有密码，只该放在可信网络里。天气取自 Open-Meteo，不需要密钥。
```
