From 6510b4e950b5a4b027117a88cd2c323466ce40be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Skowro=C5=84ski?= Date: Tue, 28 May 2024 00:19:45 +0200 Subject: [PATCH] initial changes to start work - fix BH1750 lib import - add env for my Wemos D1 Mini Pro with 16MB flash --- .gitignore | 4 +++- platformio.ini | 24 ++++++++++++++++++++++++ src/sensors/bh1750/bh1750.h | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index cc76df67..7a556933 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,6 @@ cmake-build* src/lang/bckps/* .add_build_time .vscode/* -upload_config.ini \ No newline at end of file +upload_config.ini +src/lang/intl_hu.h +src/lang/intl_ro.h diff --git a/platformio.ini b/platformio.ini index 975eaeb1..5b83e3ac 100644 --- a/platformio.ini +++ b/platformio.ini @@ -141,3 +141,27 @@ extra_scripts = ${common.extra_scripts} platform = espressif8266 board = d1_mini framework = arduino + +[env:d1_mini_pro] +lang = en +platform = ${common.platform_version} +framework = arduino +board = d1_mini_pro +board_build.f_cpu = ${common.board_build.f_cpu} +board_build.f_flash = 80000000L +board_build.flash_mode = qout +;debug - see: https://github.com/esp8266/Arduino/blob/master/boards.txt +build_flags = -Wl,-Teagle.flash.4m2m.ld + -D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH + -D BEARSSL_SSL_BASIC + #-D VTABLES_IN_DRAM + #-D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED + -D HTTPCLIENT_1_1_COMPATIBLE=0 + #-D DEBUG_ESP_OOM + #-DNDEBUG + #-DDEBUG_ESP_HTTP_CLIENT + #-DNDEBUG + #-DDEBUG_ESP_WIFI -DNDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial +lib_deps = ${common.lib_deps_external} + ${common.lib_deps_esp8266} +extra_scripts = ${common.extra_scripts} \ No newline at end of file diff --git a/src/sensors/bh1750/bh1750.h b/src/sensors/bh1750/bh1750.h index 23ff0b93..7480821e 100644 --- a/src/sensors/bh1750/bh1750.h +++ b/src/sensors/bh1750/bh1750.h @@ -10,7 +10,7 @@ #include "helpers.h" #include "html-content.h" #include "webserver.h" -#include "BH1750.h" //unfortunate sensor class name clash +#include //unfortunate sensor class name clash namespace BH17 { extern const char KEY[] PROGMEM;