From f9d100f918dcafc14135c95dc0beca9d105b2d30 Mon Sep 17 00:00:00 2001 From: Seppe De Loore Date: Sat, 21 Mar 2026 16:03:46 +0100 Subject: [PATCH] [update] README for blunder mode, WIFI_SSID, and DEMO_RESET_PAUSE build flags. Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index fd7044a..59b9825 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ When idle (no input for the configured timeout), the board enters demo mode wher The ESP32 creates a WiFi access point: -- **Network:** `Connect4-Config` +- **Network:** Configured via `WIFI_SSID` build flag (default: `Connect4`) - **Password:** Configured via `WIFI_PASSWORD` build flag (default: `youlose4`) - **Admin page:** Connect to the network and open `http://192.168.4.1` @@ -64,8 +64,7 @@ The ESP32 creates a WiFi access point: | **Base AI Ply** | Search depth for the AI (1-10). Higher = stronger. | | **Brightness** | LED brightness (0-255). | | **Idle Timeout** | Seconds of inactivity before demo mode starts. | -| **Blunders** | Reserved for future use. | -| **Evolution** | Progressive difficulty: AI gets stronger as game goes on.| +| **Blunders** | AI randomly picks a bad move at the configured chance %. | Settings are saved to flash (NVS) and persist across reboots. @@ -99,19 +98,21 @@ pio device monitor All configurable parameters are defined as `-D` flags in `platformio.ini`: -| Flag | Default | Description | -| :--------------------- | :------ | :--------------------------------------------- | -| `LED_PIN` | `4` | GPIO pin for NeoPixel data line | -| `ENC_A` | `0` | GPIO pin for encoder CLK | -| `ENC_B` | `1` | GPIO pin for encoder DT | -| `ENC_SW` | `2` | GPIO pin for encoder button | -| `SENSITIVITY` | `4` | Encoder steps per detent (higher = less sensitive) | -| `SHOW_BORDER` | `1` | Show blue border frame (0 = off, 1 = on) | -| `DEFAULT_LOOK_AHEAD` | `8` | Default AI search depth (plies) | -| `DEFAULT_BRIGHTNESS` | `25` | Default LED brightness (0-255) | -| `DEFAULT_IDLE_TIMEOUT` | `45` | Seconds before demo mode activates | -| `MAX_GAME_LOG` | `5` | Number of games stored in the game log | -| `WIFI_PASSWORD` | `youlose4` | Password for the WiFi access point | +| Flag | Default | Description | +| :--------------------- | :--------- | :------------------------------------------------- | +| `LED_PIN` | `4` | GPIO pin for NeoPixel data line | +| `ENC_A` | `0` | GPIO pin for encoder CLK | +| `ENC_B` | `1` | GPIO pin for encoder DT | +| `ENC_SW` | `2` | GPIO pin for encoder button | +| `SENSITIVITY` | `4` | Encoder steps per detent (higher = less sensitive) | +| `SHOW_BORDER` | `1` | Show blue border frame (0 = off, 1 = on) | +| `DEFAULT_LOOK_AHEAD` | `8` | Default AI search depth (plies) | +| `DEFAULT_BRIGHTNESS` | `25` | Default LED brightness (0-255) | +| `DEFAULT_IDLE_TIMEOUT` | `45` | Seconds before demo mode activates | +| `DEMO_RESET_PAUSE` | `30000` | Milliseconds before finished game enters demo | +| `MAX_GAME_LOG` | `5` | Number of games stored in the game log | +| `WIFI_SSID` | `Connect4` | SSID for the WiFi access point | +| `WIFI_PASSWORD` | `youlose4` | Password for the WiFi access point | ## Project Structure