mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 23:14:54 +01:00
ESP8266 disable PIO LDF (#2608)
This commit is contained in:
parent
8e77e3c685
commit
de06a781ff
6 changed files with 11 additions and 3 deletions
|
@ -36,3 +36,5 @@ async def to_code(config):
|
|||
if CORE.is_esp32:
|
||||
cg.add_library("DNSServer", None)
|
||||
cg.add_library("WiFi", None)
|
||||
if CORE.is_esp8266:
|
||||
cg.add_library("DNSServer", None)
|
||||
|
|
|
@ -142,6 +142,8 @@ CONFIG_SCHEMA = cv.All(
|
|||
async def to_code(config):
|
||||
cg.add(esp8266_ns.setup_preferences())
|
||||
|
||||
cg.add_platformio_option("lib_ldf_mode", "off")
|
||||
|
||||
cg.add_platformio_option("board", config[CONF_BOARD])
|
||||
cg.add_build_flag("-DUSE_ESP8266")
|
||||
cg.add_define("ESPHOME_BOARD", config[CONF_BOARD])
|
||||
|
|
|
@ -96,6 +96,8 @@ async def to_code(config):
|
|||
if CORE.is_esp32:
|
||||
cg.add_library("WiFiClientSecure", None)
|
||||
cg.add_library("HTTPClient", None)
|
||||
if CORE.is_esp8266:
|
||||
cg.add_library("ESP8266HTTPClient", None)
|
||||
|
||||
await cg.register_component(var, config)
|
||||
|
||||
|
|
|
@ -46,7 +46,9 @@ async def to_code(config):
|
|||
mosi = await cg.gpio_pin_expression(config[CONF_MOSI_PIN])
|
||||
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)
|
||||
|
||||
|
||||
|
|
|
@ -28,4 +28,4 @@ async def to_code(config):
|
|||
cg.add_library("FS", None)
|
||||
cg.add_library("Update", None)
|
||||
# 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")
|
||||
|
|
|
@ -41,7 +41,7 @@ lib_deps =
|
|||
${common.lib_deps}
|
||||
ottowinter/AsyncMqttClient-esphome@0.8.6 ; mqtt
|
||||
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
|
||||
mikalhart/TinyGPSPlus@1.0.2 ; gps
|
||||
freekode/TM1651@1.0.1 ; tm1651
|
||||
|
|
Loading…
Reference in a new issue