[update] README for blunder mode, WIFI_SSID, and DEMO_RESET_PAUSE build flags.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-21 16:03:46 +01:00
parent 0fc20da274
commit f9d100f918
+5 -4
View File
@@ -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: 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`) - **Password:** Configured via `WIFI_PASSWORD` build flag (default: `youlose4`)
- **Admin page:** Connect to the network and open `http://192.168.4.1` - **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. | | **Base AI Ply** | Search depth for the AI (1-10). Higher = stronger. |
| **Brightness** | LED brightness (0-255). | | **Brightness** | LED brightness (0-255). |
| **Idle Timeout** | Seconds of inactivity before demo mode starts. | | **Idle Timeout** | Seconds of inactivity before demo mode starts. |
| **Blunders** | Reserved for future use. | | **Blunders** | AI randomly picks a bad move at the configured chance %. |
| **Evolution** | Progressive difficulty: AI gets stronger as game goes on.|
Settings are saved to flash (NVS) and persist across reboots. Settings are saved to flash (NVS) and persist across reboots.
@@ -100,7 +99,7 @@ pio device monitor
All configurable parameters are defined as `-D` flags in `platformio.ini`: All configurable parameters are defined as `-D` flags in `platformio.ini`:
| Flag | Default | Description | | Flag | Default | Description |
| :--------------------- | :------ | :--------------------------------------------- | | :--------------------- | :--------- | :------------------------------------------------- |
| `LED_PIN` | `4` | GPIO pin for NeoPixel data line | | `LED_PIN` | `4` | GPIO pin for NeoPixel data line |
| `ENC_A` | `0` | GPIO pin for encoder CLK | | `ENC_A` | `0` | GPIO pin for encoder CLK |
| `ENC_B` | `1` | GPIO pin for encoder DT | | `ENC_B` | `1` | GPIO pin for encoder DT |
@@ -110,7 +109,9 @@ All configurable parameters are defined as `-D` flags in `platformio.ini`:
| `DEFAULT_LOOK_AHEAD` | `8` | Default AI search depth (plies) | | `DEFAULT_LOOK_AHEAD` | `8` | Default AI search depth (plies) |
| `DEFAULT_BRIGHTNESS` | `25` | Default LED brightness (0-255) | | `DEFAULT_BRIGHTNESS` | `25` | Default LED brightness (0-255) |
| `DEFAULT_IDLE_TIMEOUT` | `45` | Seconds before demo mode activates | | `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 | | `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 | | `WIFI_PASSWORD` | `youlose4` | Password for the WiFi access point |
## Project Structure ## Project Structure