Skip to content

Commit 6510b4e

Browse files
initial changes to start work
- fix BH1750 lib import - add env for my Wemos D1 Mini Pro with 16MB flash
1 parent fc438d2 commit 6510b4e

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ cmake-build*
2323
src/lang/bckps/*
2424
.add_build_time
2525
.vscode/*
26-
upload_config.ini
26+
upload_config.ini
27+
src/lang/intl_hu.h
28+
src/lang/intl_ro.h

platformio.ini

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,27 @@ extra_scripts = ${common.extra_scripts}
141141
platform = espressif8266
142142
board = d1_mini
143143
framework = arduino
144+
145+
[env:d1_mini_pro]
146+
lang = en
147+
platform = ${common.platform_version}
148+
framework = arduino
149+
board = d1_mini_pro
150+
board_build.f_cpu = ${common.board_build.f_cpu}
151+
board_build.f_flash = 80000000L
152+
board_build.flash_mode = qout
153+
;debug - see: https://github.com/esp8266/Arduino/blob/master/boards.txt
154+
build_flags = -Wl,-Teagle.flash.4m2m.ld
155+
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
156+
-D BEARSSL_SSL_BASIC
157+
#-D VTABLES_IN_DRAM
158+
#-D PIO_FRAMEWORK_ARDUINO_MMU_CACHE16_IRAM48_SECHEAP_SHARED
159+
-D HTTPCLIENT_1_1_COMPATIBLE=0
160+
#-D DEBUG_ESP_OOM
161+
#-DNDEBUG
162+
#-DDEBUG_ESP_HTTP_CLIENT
163+
#-DNDEBUG
164+
#-DDEBUG_ESP_WIFI -DNDEBUG_ESP_OOM -DDEBUG_ESP_PORT=Serial
165+
lib_deps = ${common.lib_deps_external}
166+
${common.lib_deps_esp8266}
167+
extra_scripts = ${common.extra_scripts}

src/sensors/bh1750/bh1750.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "helpers.h"
1111
#include "html-content.h"
1212
#include "webserver.h"
13-
#include "BH1750.h" //unfortunate sensor class name clash
13+
#include <BH1750.h> //unfortunate sensor class name clash
1414

1515
namespace BH17 {
1616
extern const char KEY[] PROGMEM;

0 commit comments

Comments
 (0)