; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:d1_mini]
platform = espressif8266
board = d1_mini
board_build.filesystem = littlefs
board_build.f_flash = 80000000L
board_build.ldscript = eagle.flash.4m1m.ld

build_flags=
    -D DEVICE_NAME='"DE CTF Timer Prototype 1"'
    -D WIFI_CLIENT
    -D WIFI_SSID='"BND_Scanner_#42"'
    -D WIFI_PASS='"5xMYkerbLMdrsSdF3hpy5DM9"'
    ;-D WIFI_AP
    ;-D WIFI_SSID='"Dark Emergency CTF Timer"'
    ;-D WIFI_PASS='"CaptureTheFlag"'
    -D FACTION_1_NAME='"GOF"'
    -D FACTION_2_NAME='"MILIZ"'
    -D FACTION_3_NAME='"KGG"'

framework = arduino
lib_deps =
    smougenot/TM1637@0.0.0-alpha+sha.9486982048
    me-no-dev/ESP Async WebServer @ ^1.2.3
    sstaub/Ticker @ ^4.2.0
    adafruit/Adafruit INA219 @ ^1.1.1