0fc20da274
- Add #ifndef guards for pin defines duplicated between platformio.ini and main.cpp - Use DEFAULT_LOOK_AHEAD, DEFAULT_BRIGHTNESS, DEFAULT_IDLE_TIMEOUT, DEMO_RESET_PAUSE build flags instead of hardcoded magic numbers - Add WIFI_SSID build flag for configurable access point name - Remove unused build flags (BRIGHTNESS, IDLE_TIMEOUT, DEBOUNCE_DELAY) - Remove progressive difficulty / evolution feature (getDynamicPly) - Replace goto with structured control flow in performAiMove - Deduplicate checkGameEnd win/draw branches - Implement blunder mode: configurable chance (%) to pick a random column, preserving instant win/block detection Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
24 lines
568 B
INI
24 lines
568 B
INI
[env:lolin_c3_mini]
|
|
platform = espressif32
|
|
board = lolin_c3_mini
|
|
framework = arduino
|
|
monitor_speed = 115200
|
|
build_flags =
|
|
-D ARDUINO_USB_MODE=1
|
|
-D ARDUINO_USB_CDC_ON_BOOT=1
|
|
-D LED_PIN=4
|
|
-D ENC_A=0
|
|
-D ENC_B=1
|
|
-D ENC_SW=2
|
|
-D SENSITIVITY=4
|
|
-D SHOW_BORDER=0
|
|
-D DEMO_RESET_PAUSE=20000
|
|
-D DEFAULT_LOOK_AHEAD=8
|
|
-D DEFAULT_BRIGHTNESS=25
|
|
-D DEFAULT_IDLE_TIMEOUT=45
|
|
-D MAX_GAME_LOG=100
|
|
-D WIFI_SSID=\"Connect4\"
|
|
-D WIFI_PASSWORD=\"youlose4\"
|
|
lib_deps =
|
|
fastled/FastLED @ 3.9.12
|
|
paulstoffregen/Encoder @ ^1.4.4 |