# esp32-simon-says

用三个按钮、ESP32 和灯光反馈实现的 Simon Says 记忆游戏。

A 3-button Simon Says memory game on an ESP32, with schematic, test sketch and build notes.

用三个按钮、ESP32 和灯光反馈实现的 Simon Says 记忆游戏。

- id: engamronour-sys-esp32-simon-says
- author: engamronour-sys
- repository: https://github.com/engamronour-sys/esp32-simon-says
- license: MIT
- shape: square
- scenes: games
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/engamronour-sys-esp32-simon-says/
- html_zh: https://esp32gallery.com/zh/projects/engamronour-sys-esp32-simon-says/
- json: https://esp32gallery.com/data/catalog/projects/engamronour-sys-esp32-simon-says.json

## Hardware

ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.

ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。

## English

```
Three LEDs, three buttons and a buzzer on a breadboard, with no network and no display: the board flashes a growing sequence and the player repeats it, each round one step longer and a little faster. A wrong button or three seconds of silence ends the run with a low buzz, the missed LED blinking three times and a tally of rounds completed. Two Arduino sketches ship, a hardware test that identifies an active or passive buzzer and reports button presses, then the game itself; wiring uses GPIO 25, 26 and 27 for LEDs with 330 Ω resistors, GPIO 32, 33 and 14 for buttons on internal pull-ups, and GPIO 13 for the buzzer. All settings sit at the top of the sketch.
```

## 中文

```
三个 LED、三个按键和一个蜂鸣器，插在面包板上就能玩，没有网络也没有屏幕。板子闪一段越来越长的序列，玩家照着按，每过一轮多一步、也快一点；按错或者三秒没动作就结束，低音一响，漏掉的那个灯闪三下，再用整排灯闪出完成的轮数。附两个 Arduino 草图：先刷测试程序，逐个点亮 LED 并分辨有源还是无源蜂鸣器、在串口打印每次按键，确认接线后再刷游戏。LED 接 GPIO 25、26、27，各串 330Ω 电阻；按键接 GPIO 32、33、14，用内部上拉，不用外接电阻；蜂鸣器在 GPIO 13。所有可调项都在草图开头，包括 50 步的通关长度。
```
