; PlatformIO Project Configuration File (for copy and paste)
;
;   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
; http://docs.platformio.org/page/projectconf.html
[platformio]
;home_dir = C:\platformio
src_dir = lighthub
;monitor_speed = 115200
default_envs =
;   ****** UNCOMMENT single environment name for target platform below *******
; Arduino Mega (without onewire) + Ethernet shield Wiznet 5100
;    mega2560slim-5100

; Arduino Mega + Ethernet shield Wiznet 5100
;    mega2560-5100

; Arduino Mega  + Ethernet shield Wiznet 5500
;    mega2560-5500

; LightHub controller HW revision 2.1 and above (Wiznet 5500 CS on pin 53)
;    lighthub21

; Arduino DUE  + Ethernet shield Wiznet 5100
;    due-5100

; Arduino DUE + Ethernet shield Wiznet 5500
;    due-5500

; ESP 8266
;    esp8266-wifi

; ESP-32
;    esp32-wifi

; M5Stack core (ESP32 based)
;    m5stack

; Controllino
;    controllino

; STM32 board + ENC28j60 network
;    stm32-enc2860

; NRF52 board + Wiznet 5500 network
;    nrf52840-5500

;build_dir = /tmp/pioenvs
;libdeps_dir = /tmp/piolibdeps
[env:nrf52840-5500]
platform = nordicnrf52
board = nrf52840_dk
;board_build.variant = breakout
;upload_protocol = mbed
;upload_port = /dev/cu.SLAB_USBtoUART
framework = arduino
build_flags = !bash check_custom_build_flags_nrf52840.sh
lib_ignore =
    ESP_EEPROM
    DmxSimple
    DMXSerial
    DmxDue
    EEPROM
    SD
    SdFat
    WifiManager
    Ethernet
    Ethernet3
    httpClient
    FastLED
    ESPDMX
    ESP-Dmx
    DueFlashStorage
    PrintEx
    ;DHT sensor library
    DHT sensor library for ESPx
    ;Adafruit Unified Sensor
    WebServer
    UIPEthernet
    ;Adafruit_Sensor
    ClosedCube HDC1080
    SparkFun CCS811 Arduino Library
    ESP8266HTTPClient
    M5Stack
lib_deps =
    https://github.com/anklimov/Arduino-Temperature-Control-Library.git
    https://github.com/anklimov/DS2482_OneWire
    https://github.com/anklimov/Ethernet2
    ArduinoHttpClient
    https://github.com/anklimov/aJson
    https://github.com/anklimov/CmdArduino
    https://github.com/anklimov/ModbusMaster
    https://github.com/knolleary/pubsubclient.git
;    https://github.com/anklimov/Artnet.git
;    FastLED
    Adafruit Unified Sensor
    DHT sensor library
    Streaming
    https://github.com/anklimov/NRFFlashStorage
;    https://github.com/livello/PrintEx#is-select-redecl



[env:m5stack]
platform = espressif32
board = m5stack-core-esp32
framework = arduino
upload_speed = 921600
build_flags = !bash check_custom_build_flags_esp32.sh
lib_ignore =
    DmxSimple
    DMXSerial
    DmxDue
    DueFlashStorage
    SD
    SdFat
    Ethernet
    Ethernet2
    Ethernet3
    EEPROM
    Artnet
    UIPEthernet
    ESP_EEPROM
    httpClient
    HttpClient_ID66
    HttpClient
    ArduinoHttpClient
lib_deps =
    https://github.com/ebenolson/WIFIMANAGER-ESP32.git
    https://github.com/zhouhan0126/WebServer-esp32.git
    https://github.com/anklimov/aJson
    https://github.com/anklimov/CmdArduino
    https://github.com/knolleary/pubsubclient.git
    Streaming
    ;ESP_EEPROM
    https://github.com/anklimov/NRFFlashStorage
    Adafruit Unified Sensor
    DHT sensor library for ESPx
    https://github.com/anklimov/Artnet.git
    https://github.com/anklimov/ModbusMaster
    https://github.com/anklimov/Arduino-Temperature-Control-Library.git
    https://github.com/anklimov/DS2482_OneWire
    https://github.com/anklimov/ESP-Dmx
    FastLED
    ClosedCube HDC1080
    ;SparkFun CCS811 Arduino Library
    https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library.git
    M5Stack

[env:esp32-wifi]
platform = espressif32
framework = arduino
;board = pico32
board = esp32-evb
upload_speed = 115200
build_flags = !bash check_custom_build_flags_esp32.sh
lib_ignore =
    DmxSimple
    DMXSerial
    DmxDue
    DueFlashStorage
    SD
    SdFat
    Ethernet
    Ethernet2
    Ethernet3
    EEPROM
    Artnet
    UIPEthernet
    ESP_EEPROM
    httpClient
    HttpClient_ID66
    HttpClient
    ArduinoHttpClient
    M5Stack
lib_deps =
    https://github.com/ebenolson/WIFIMANAGER-ESP32.git
    https://github.com/zhouhan0126/WebServer-esp32.git
    https://github.com/anklimov/aJson
    https://github.com/anklimov/CmdArduino
    https://github.com/knolleary/pubsubclient.git
    Streaming
    ;ESP_EEPROM
    https://github.com/anklimov/NRFFlashStorage
    Adafruit Unified Sensor
    DHT sensor library for ESPx
    https://github.com/anklimov/Artnet.git
    https://github.com/anklimov/ModbusMaster
    https://github.com/anklimov/Arduino-Temperature-Control-Library.git
    https://github.com/anklimov/DS2482_OneWire
    https://github.com/anklimov/ESP-Dmx
    FastLED
    ClosedCube HDC1080
    ;SparkFun CCS811 Arduino Library
    https://github.com/sparkfun/SparkFun_CCS811_Arduino_Library.git
[env:due-5100]
platform = atmelsam
framework = arduino
board = due
build_flags = !bash check_custom_build_flags_due.sh
lib_ignore =
    DHT sensor library for ESPx
    ESP_EEPROM
    DMXSerial
    DmxSimple
    httpClient
    ESPDMX
    ESP-Dmx
    WifiManager
    Ethernet3
    NRFFlashStorage
    WebServer
    UIPEthernet
    EEPROM
    M5Stack
lib_deps =
    https://github.com/sebnil/DueFlashStorage
    https://github.com/anklimov/Arduino-Temperature-Control-Library.git
    https://github.com/anklimov/DS2482_OneWire
    https://github.com/anklimov/DmxDue
    ArduinoHttpClient
    https://github.com/anklimov/aJson
    https://github.com/anklimov/CmdArduino
    https://github.com/anklimov/ModbusMaster
    https://github.com/anklimov/Ethernet
    https://github.com/knolleary/pubsubclient.git
    https://github.com/anklimov/Artnet.git
    FastLED
    SD
    SdFat
    Adafruit Unified Sensor
    DHT sensor library
    https://github.com/arcao/Syslog.git
    Streaming
    ClosedCube HDC1080
    SparkFun CCS811 Arduino Library

[env:mega2560slim-5100]
platform = atmelavr
board = megaatmega2560
;upload_port = net:192.168.88.31:23
framework = arduino
build_flags = !bash check_custom_build_flags_mega2560-slim.sh
lib_ignore =
    DHT sensor library for ESPx
    DmxDue
    DueFlashStorage
    WifiManager
    Ethernet3
    HTTPClient
    NRFFlashStorage
    WebServer
    UIPEthernet
    ESP_EEPROM
    M5Stack
lib_deps =
    https://github.com/anklimov/Arduino-Temperature-Control-Library.git
    https://github.com/anklimov/DS2482_OneWire
    https://github.com/anklimov/DmxSimple
    https://github.com/anklimov/httpClient
    https://github.com/anklimov/aJson
    https://github.com/anklimov/CmdArduino
    https://github.com/anklimov/ModbusMaster
    https://github.com/anklimov/DMXSerial
    https://github.com/anklimov/Ethernet
    https://github.com/knolleary/pubsubclient.git
    https://github.com/anklimov/Artnet.git
    FastLED
    ;EEPROM
    Adafruit Unified Sensor
    DHT sensor library
    https://github.com/arcao/Syslog.git
    Streaming
    ClosedCube HDC1080
    SparkFun CCS811 Arduino Library

[env:mega2560-5500]
platform = atmelavr
board = megaatmega2560
framework = arduino
build_flags = !bash check_custom_build_flags_mega2560-5500.sh
lib_ignore =
        DHT sensor library for ESPx
        DmxDue
        DueFlashStorage
        WifiManager
        Ethernet
        Ethernet3
        HTTPClient
        NRFFlashStorage
        WebServer
        UIPEthernet
        ESP_EEPROM
        M5Stack
lib_deps =
        https://github.com/anklimov/Arduino-Temperature-Control-Library.git
        https://github.com/anklimov/DS2482_OneWire
        https://github.com/anklimov/DmxSimple
        https://github.com/anklimov/httpClient
        https://github.com/anklimov/aJson
        https://github.com/anklimov/CmdArduino
        https://github.com/anklimov/ModbusMaster
        https://github.com/anklimov/DMXSerial
        https://github.com/anklimov/Ethernet2
        https://github.com/knolleary/pubsubclient.git
        https://github.com/anklimov/Artnet.git
        FastLED
        Adafruit Unified Sensor
        DHT sensor library
        https://github.com/arcao/Syslog.git
        Streaming
        ClosedCube HDC1080
        SparkFun CCS811 Arduino Library


[env:esp8266-wifi]
platform = espressif8266
framework = arduino
board = nodemcuv2
build_flags = !bash check_custom_build_flags_esp8266.sh
lib_ignore =
    DmxSimple
    DMXSerial
    DmxDue
    DueFlashStorage
    SD
    SdFat
    httpClient
    HTTPClient
    HttpClient_ID66
    HttpClient
    ArduinoHttpClient
    Ethernet3
    Ethernet2
    Ethernet
    NRFFlashStorage
    UIPEthernet
    EEPROM
    M5Stack
lib_deps =
    https://github.com/anklimov/Arduino-Temperature-Control-Library.git
    https://github.com/anklimov/DS2482_OneWire
    https://github.com/anklimov/ESP-Dmx
    ESP8266HTTPClient
    https://github.com/anklimov/aJson
    https://github.com/anklimov/CmdArduino
    https://github.com/anklimov/ModbusMaster
    https://github.com/knolleary/pubsubclient.git
    https://github.com/anklimov/Artnet.git
    https://github.com/FastLED/FastLED.git
    Adafruit Unified Sensor
    DHT sensor library for ESPx
    DHT sensor library
    WifiManager
    https://github.com/arcao/Syslog.git
    Streaming
    ESP_EEPROM
    ClosedCube HDC1080
    SparkFun CCS811 Arduino Library

[env:mega2560-5100]
platform = atmelavr
board = megaatmega2560
framework = arduino
upload_port = net:192.168.88.2:23000
build_flags = !bash check_custom_build_flags_mega2560.sh
lib_ignore =
    DHT sensor library for ESPx
    DmxDue
    DueFlashStorage
    ESPDMX
    ESP-Dmx
    WifiManager
    Ethernet3
    Ethernet2
    NRFFlashStorage
    WebServer
    UIPEthernet
    ESP_EEPROM
    M5Stack
lib_deps =
    https://github.com/anklimov/Arduino-Temperature-Control-Library.git
    https://github.com/anklimov/DS2482_OneWire
    https://github.com/anklimov/DmxSimple
    https://github.com/anklimov/httpClient
    https://github.com/anklimov/aJson
    https://github.com/anklimov/CmdArduino
    https://github.com/anklimov/ModbusMaster
    https://github.com/anklimov/DMXSerial
    https://github.com/anklimov/Ethernet
    https://github.com/knolleary/pubsubclient.git
    https://github.com/anklimov/Artnet.git
    FastLED
    Adafruit Unified Sensor
    DHT sensor library
    https://github.com/arcao/Syslog.git
    Streaming
    ClosedCube HDC1080
    SparkFun CCS811 Arduino Library

[env:due-5500]
platform = atmelsam
framework = arduino
board = due
build_flags = !bash check_custom_build_flags_due-5500.sh
lib_ignore =
    DHT sensor library for ESPx
    ESPDMX
    ESP-Dmx
    DMXSerial
    WifiManager
    DmxSimple
    httpClient
    Ethernet
    Ethernet3
    NRFFlashStorage
    WebServer
    UIPEthernet
    ESP_EEPROM
    EEPROM
    M5Stack
lib_deps =
    https://github.com/sebnil/DueFlashStorage
    https://github.com/anklimov/Arduino-Temperature-Control-Library.git
    https://github.com/anklimov/DS2482_OneWire
    https://github.com/anklimov/DmxDue
    ArduinoHttpClient
    https://github.com/anklimov/aJson
    https://github.com/anklimov/CmdArduino
    https://github.com/anklimov/ModbusMaster
    https://github.com/anklimov/Ethernet2
    https://github.com/knolleary/pubsubclient.git
    https://github.com/anklimov/Artnet.git
    FastLED
    SD
    SdFat
    Adafruit Unified Sensor
    DHT sensor library
    https://github.com/arcao/Syslog.git
    Streaming
    https://github.com/livello/PrintEx#is-select-redecl
    ClosedCube HDC1080
    SparkFun CCS811 Arduino Library

[env:lighthub21]
platform = atmelsam
framework = arduino
board = due
build_flags = !bash check_custom_build_flags_lighthub21.sh
lib_ignore =
        DHT sensor library for ESPx
        ESPDMX
        ESP-Dmx
        DMXSerial
        WifiManager
        DmxSimple
        httpClient
        Ethernet
        Ethernet3
        NRFFlashStorage
        WebServer
        UIPEthernet
        ESP_EEPROM
        EEPROM
        M5Stack
lib_deps =
        https://github.com/sebnil/DueFlashStorage
        https://github.com/anklimov/Arduino-Temperature-Control-Library.git
        https://github.com/anklimov/DS2482_OneWire
        https://github.com/anklimov/DmxDue
        ArduinoHttpClient
        https://github.com/anklimov/aJson
        https://github.com/anklimov/CmdArduino
        https://github.com/anklimov/ModbusMaster
        https://github.com/anklimov/Ethernet2
        https://github.com/knolleary/pubsubclient.git
        https://github.com/anklimov/Artnet.git
        FastLED
        SD
        SdFat
        Adafruit Unified Sensor
        DHT sensor library
        https://github.com/arcao/Syslog.git
        Streaming
        https://github.com/livello/PrintEx#is-select-redecl
        ClosedCube HDC1080
        SparkFun CCS811 Arduino Library


[env:controllino]
platform = atmelavr
board = megaatmega2560
framework = arduino
build_flags = !bash check_custom_build_flags_controllino.sh
lib_ignore =
    DHT sensor library for ESPx
    DmxDue
    DueFlashStorage
    ESPDMX
    ESP-Dmx
    WifiManager
    Ethernet3
    Ethernet2
    NRFFlashStorage
    WebServer
    UIPEthernet
    ESP_EEPROM
    M5Stack
lib_deps =
    https://github.com/anklimov/Arduino-Temperature-Control-Library.git
    https://github.com/anklimov/DS2482_OneWire
    https://github.com/anklimov/DmxSimple
    https://github.com/anklimov/httpClient
    https://github.com/anklimov/aJson
    https://github.com/anklimov/CmdArduino
    https://github.com/anklimov/ModbusMaster
    https://github.com/anklimov/DMXSerial
    https://github.com/anklimov/Ethernet
    https://github.com/knolleary/pubsubclient.git
    https://github.com/anklimov/Artnet.git
    FastLED
    ;EEPROM
    Adafruit Unified Sensor
    DHT sensor library
    Streaming
    https://github.com/livello/PrintEx#is-select-redecl
    ClosedCube HDC1080
    SparkFun CCS811 Arduino Library

[env:stm32-enc2860]
platform = ststm32
framework = arduino
board = nucleo_f103rb
upload_protocol = stlink
debug_tool = stlink
build_flags = !bash check_custom_build_flags_stm32.sh
lib_ignore =
    DHT sensor library for ESPx
    DmxDue
    DueFlashStorage
    ESPDMX
    ESP-Dmx
    WifiManager
    FastLED
    Ethernet
    DMXSerial
    DmxSimple
    httpClient
    SD
    PrintEx
    Ethernet2
    Artnet
    Ethernet3
    WebServer
    ESP_EEPROM
    DHT sensor library
    DallasTemperature
    Adafruit Unified Sensor
    DS2482_OneWire
    ModbusMaster
    Syslog
    EEPROM
    ClosedCube HDC1080
    SparkFun CCS811 Arduino Library
    M5Stack
lib_deps =
    https://github.com/anklimov/aJson
    https://github.com/anklimov/CmdArduino
    ArduinoHttpClient
    https://github.com/knolleary/pubsubclient.git
    Streaming
    UIPEthernet
    https://github.com/anklimov/NRFFlashStorage
