ESP8266 disable PIO LDF (#2608)

This commit is contained in:
Otto Winter 2021-10-23 19:44:55 +02:00 committed by GitHub
parent 8e77e3c685
commit de06a781ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 3 deletions

View file

@ -36,3 +36,5 @@ async def to_code(config):
if CORE.is_esp32: if CORE.is_esp32:
cg.add_library("DNSServer", None) cg.add_library("DNSServer", None)
cg.add_library("WiFi", None) cg.add_library("WiFi", None)
if CORE.is_esp8266:
cg.add_library("DNSServer", None)

View file

@ -142,6 +142,8 @@ CONFIG_SCHEMA = cv.All(
async def to_code(config): async def to_code(config):
cg.add(esp8266_ns.setup_preferences()) cg.add(esp8266_ns.setup_preferences())
cg.add_platformio_option("lib_ldf_mode", "off")
cg.add_platformio_option("board", config[CONF_BOARD]) cg.add_platformio_option("board", config[CONF_BOARD])
cg.add_build_flag("-DUSE_ESP8266") cg.add_build_flag("-DUSE_ESP8266")
cg.add_define("ESPHOME_BOARD", config[CONF_BOARD]) cg.add_define("ESPHOME_BOARD", config[CONF_BOARD])

View file

@ -96,6 +96,8 @@ async def to_code(config):
if CORE.is_esp32: if CORE.is_esp32:
cg.add_library("WiFiClientSecure", None) cg.add_library("WiFiClientSecure", None)
cg.add_library("HTTPClient", None) cg.add_library("HTTPClient", None)
if CORE.is_esp8266:
cg.add_library("ESP8266HTTPClient", None)
await cg.register_component(var, config) await cg.register_component(var, config)

View file

@ -46,7 +46,9 @@ async def to_code(config):
mosi = await cg.gpio_pin_expression(config[CONF_MOSI_PIN]) mosi = await cg.gpio_pin_expression(config[CONF_MOSI_PIN])
cg.add(var.set_mosi(mosi)) cg.add(var.set_mosi(mosi))
if CORE.is_esp32: if CORE.is_esp32 and CORE.using_arduino:
cg.add_library("SPI", None)
if CORE.is_esp8266:
cg.add_library("SPI", None) cg.add_library("SPI", None)

View file

@ -28,4 +28,4 @@ async def to_code(config):
cg.add_library("FS", None) cg.add_library("FS", None)
cg.add_library("Update", None) cg.add_library("Update", None)
# https://github.com/esphome/ESPAsyncWebServer/blob/master/library.json # https://github.com/esphome/ESPAsyncWebServer/blob/master/library.json
cg.add_library("esphome/ESPAsyncWebServer-esphome", "2.0.0") cg.add_library("esphome/ESPAsyncWebServer-esphome", "2.0.1")

View file

@ -41,7 +41,7 @@ lib_deps =
${common.lib_deps} ${common.lib_deps}
ottowinter/AsyncMqttClient-esphome@0.8.6 ; mqtt ottowinter/AsyncMqttClient-esphome@0.8.6 ; mqtt
ottowinter/ArduinoJson-esphomelib@5.13.3 ; json ottowinter/ArduinoJson-esphomelib@5.13.3 ; json
esphome/ESPAsyncWebServer-esphome@2.0.0 ; web_server_base esphome/ESPAsyncWebServer-esphome@2.0.1 ; web_server_base
fastled/FastLED@3.3.2 ; fastled_base fastled/FastLED@3.3.2 ; fastled_base
mikalhart/TinyGPSPlus@1.0.2 ; gps mikalhart/TinyGPSPlus@1.0.2 ; gps
freekode/TM1651@1.0.1 ; tm1651 freekode/TM1651@1.0.1 ; tm1651