; 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

[platformio]
build_dir = .\firmware

[env:full]
platform = espressif32
board = wt32-eth01
framework = arduino
board_build.f_cpu = 240000000L
build_flags = -DENABLE_INTERNAL_LCD -DENABLE_IR_MODULE -DENABLE_CLIMATE_MODULE -DENABLE_ANALOG_MODULE -DENABLE_WEBUI
lib_deps = siwats/ESPMegaPROR3@^1.3.0
           knolleary/PubSubClient@^2.8
           ivanseidel/ArduinoThread@^2.1.1
           arduino-libraries/Arduino_BuiltIn@^1.0.0
           dersimn/PubSubClientTools@^0.6
           z3t0/IRremote@^4.2.0
           robtillaart/DHTNEW@^0.4.18
           seithan/Easy Nextion Library@^1.0.6
           robtillaart/FRAM_I2C@^0.6.1
           esphome/ESPAsyncWebServer-esphome@^3.1.0
monitor_speed = 115200

[env:lcd_climate]
platform = espressif32
board = wt32-eth01
framework = arduino
board_build.f_cpu = 240000000L
build_flags = -DENABLE_INTERNAL_LCD -DENABLE_IR_MODULE -DENABLE_CLIMATE_MODULE
lib_deps = siwats/ESPMegaPROR3@^1.3.0
           knolleary/PubSubClient@^2.8
           ivanseidel/ArduinoThread@^2.1.1
           arduino-libraries/Arduino_BuiltIn@^1.0.0
           dersimn/PubSubClientTools@^0.6
           z3t0/IRremote@^4.2.0
           robtillaart/DHTNEW@^0.4.18
           seithan/Easy Nextion Library@^1.0.6
           robtillaart/FRAM_I2C@^0.6.1
           esphome/ESPAsyncWebServer-esphome@^3.1.0
monitor_speed = 115200

[env:webui]
platform = espressif32
board = wt32-eth01
framework = arduino
board_build.f_cpu = 240000000L
build_flags = -DENABLE_WEBUI
lib_deps = siwats/ESPMegaPROR3@^1.3.0
           knolleary/PubSubClient@^2.8
           ivanseidel/ArduinoThread@^2.1.1
           arduino-libraries/Arduino_BuiltIn@^1.0.0
           dersimn/PubSubClientTools@^0.6
           z3t0/IRremote@^4.2.0
           robtillaart/DHTNEW@^0.4.18
           seithan/Easy Nextion Library@^1.0.6
           robtillaart/FRAM_I2C@^0.6.1
           esphome/ESPAsyncWebServer-esphome@^3.1.0

[env:climate_webui]
platform = espressif32
board = wt32-eth01
framework = arduino
board_build.f_cpu = 240000000L
build_flags = -DENABLE_IR_MODULE -DENABLE_CLIMATE_MODULE -DENABLE_WEBUI
lib_deps = siwats/ESPMegaPROR3@^1.3.0
           knolleary/PubSubClient@^2.8
           ivanseidel/ArduinoThread@^2.1.1
           arduino-libraries/Arduino_BuiltIn@^1.0.0
           dersimn/PubSubClientTools@^0.6
           z3t0/IRremote@^4.2.0
           robtillaart/DHTNEW@^0.4.18
           seithan/Easy Nextion Library@^1.0.6
           robtillaart/FRAM_I2C@^0.6.1
           esphome/ESPAsyncWebServer-esphome@^3.1.0
monitor_speed = 115200

[env:lcd_webui]
platform = espressif32
board = wt32-eth01
framework = arduino
board_build.f_cpu = 240000000L
build_flags = -DENABLE_INTERNAL_LCD -DENABLE_WEBUI
lib_deps = siwats/ESPMegaPROR3@^1.3.0
           knolleary/PubSubClient@^2.8
           ivanseidel/ArduinoThread@^2.1.1
           arduino-libraries/Arduino_BuiltIn@^1.0.0
           dersimn/PubSubClientTools@^0.6
           z3t0/IRremote@^4.2.0
           robtillaart/DHTNEW@^0.4.18
           seithan/Easy Nextion Library@^1.0.6
           robtillaart/FRAM_I2C@^0.6.1
           esphome/ESPAsyncWebServer-esphome@^3.1.0
monitor_speed = 115200

[env:ir_climate_analog_webui]
platform = espressif32
board = wt32-eth01
framework = arduino
board_build.f_cpu = 240000000L
build_flags = -DENABLE_IR_MODULE -DENABLE_CLIMATE_MODULE -DENABLE_ANALOG_MODULE -DENABLE_WEBUI
lib_deps = siwats/ESPMegaPROR3@^1.3.0
           knolleary/PubSubClient@^2.8
           ivanseidel/ArduinoThread@^2.1.1
           arduino-libraries/Arduino_BuiltIn@^1.0.0
           dersimn/PubSubClientTools@^0.6
           z3t0/IRremote@^4.2.0
           robtillaart/DHTNEW@^0.4.18
           seithan/Easy Nextion Library@^1.0.6
           robtillaart/FRAM_I2C@^0.6.1
           esphome/ESPAsyncWebServer-esphome@^3.1.0
monitor_speed = 115200

[env:lcd_analog]
platform = espressif32
board = wt32-eth01
framework = arduino
board_build.f_cpu = 240000000L
build_flags = -DENABLE_INTERNAL_LCD -DENABLE_ANALOG_MODULE
lib_deps = siwats/ESPMegaPROR3@^1.3.0
           knolleary/PubSubClient@^2.8
           ivanseidel/ArduinoThread@^2.1.1
           arduino-libraries/Arduino_BuiltIn@^1.0.0
           dersimn/PubSubClientTools@^0.6
           z3t0/IRremote@^4.2.0
           robtillaart/DHTNEW@^0.4.18
           seithan/Easy Nextion Library@^1.0.6
           robtillaart/FRAM_I2C@^0.6.1
           esphome/ESPAsyncWebServer-esphome@^3.1.0
monitor_speed = 115200

[env:lcd]
platform = espressif32
board = wt32-eth01
framework = arduino
board_build.f_cpu = 240000000L
build_flags = -DENABLE_INTERNAL_LCD
lib_deps = siwats/ESPMegaPROR3@^1.3.0
           knolleary/PubSubClient@^2.8
           ivanseidel/ArduinoThread@^2.1.1
           arduino-libraries/Arduino_BuiltIn@^1.0.0
           dersimn/PubSubClientTools@^0.6
           z3t0/IRremote@^4.2.0
           robtillaart/DHTNEW@^0.4.18
           seithan/Easy Nextion Library@^1.0.6
           robtillaart/FRAM_I2C@^0.6.1
           esphome/ESPAsyncWebServer-esphome@^3.1.0
monitor_speed = 115200

[env:minimal]
platform = espressif32
board = wt32-eth01
framework = arduino
board_build.f_cpu = 240000000L
lib_deps = siwats/ESPMegaPROR3@^1.3.0
           knolleary/PubSubClient@^2.8
           ivanseidel/ArduinoThread@^2.1.1
           arduino-libraries/Arduino_BuiltIn@^1.0.0
           dersimn/PubSubClientTools@^0.6
           z3t0/IRremote@^4.2.0
           robtillaart/DHTNEW@^0.4.18
           seithan/Easy Nextion Library@^1.0.6
           robtillaart/FRAM_I2C@^0.6.1
           esphome/ESPAsyncWebServer-esphome@^3.1.0