; -- Platform specific build flags
[esp8266]
framework = arduino
platform = espressif8266

board_build.f_flash = 40000000L
board_build.flash_mode = dout
board_build.ldscript = eagle.flash.4m2m.ld  ; 2Mb Spiffs
board_build.f_cpu = 160000000L ; set frequency to 160MHz

; ----- crash reporter
monitor_filters = esp8266_exception_decoder

build_flags=
    -D HTTP_UPLOAD_BUFLEN=512          ; lower http upload buffer
    -D MQTT_MAX_PACKET_SIZE=1024       ; longer PubSubClient messages
    -D HASP_CONSOLE_BUFFER=160         ; maximum length of a console/telnet command
    -D ATOMIC_FS_UPDATE                ; enabled compressed ota updates
    -D NO_GLOBAL_HTTPUPDATE            ; dont instantiate httpUpdate
; -- lwIP Variant -----------------------------------
    ;-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
    -D PIO_FRAMEWORK_ARDUINO_LWIP2_LOW_MEMORY
; -- lvgl build options -----------------------------
    -D LV_ATTRIBUTE_FAST_MEM=
    -D LV_ATTRIBUTE_TASK_HANDLER=
; -- ArduinoJson build options ----------------------------
    -D ARDUINOJSON_ENABLE_PROGMEM=1    ; for PROGMEM arguments
    -D ARDUINOJSON_ENABLE_STD_STRING=1 ; for std::string
; -- openHASP build options -------------------------
    -D HASP_ATTRIBUTE_FAST_MEM=
    -D HASP_USE_TELNET=1
    ;-D HASP_USE_SPIFFS=1
    -D HASP_USE_LITTLEFS=1
    -D HASP_USE_EEPROM=1
    -D HASP_USE_ETHERNET=0
    -D HASP_USE_CONFIG=1               ; Native application, not library

extra_scripts = tools/copy_fw.py    ; tools/pre:extra_script.py

lib_ignore =
    ESP32 BLE Arduino
    GxTFT
    sstaub/Ticker
    lv_drv_fsmc_ili9341
    AXP192

lib_deps =
