[platformio]
src_dir = .

[env]
lib_extra_dirs = ../../
lib_ldf_mode = deep+
lib_ignore = examples
framework = arduino
monitor_speed = 115200
build_flags = ; -D_IR_LOCALE_=en-AU

[common]
ldscript_4m = eagle.flash.4m3m.ld
lib_deps_builtin =
lib_deps_external =
  ArduinoJson@>=6.0

[common_esp8266]
lib_deps_external =
  ${common.lib_deps_builtin}
  ${common.lib_deps_external}
  WifiManager@>=0.14

[common_esp32]
lib_deps_external =
  ${common.lib_deps_builtin}
  ${common.lib_deps_external}
  https://github.com/tzapu/WiFiManager.git#master

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
lib_deps = ${common_esp8266.lib_deps_external}
board_build.ldscript = ${common.ldscript_4m}
[env:esp32dev]
platform = espressif32
board = esp32dev
lib_deps = ${common_esp32.lib_deps_external}
