Skip to content

Commit

Permalink
initial changes to start work
Browse files Browse the repository at this point in the history
- fix BH1750 lib import
- add env for my Wemos D1 Mini Pro with 16MB flash
  • Loading branch information
danielskowronski committed May 27, 2024
1 parent fc438d2 commit 6510b4e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ cmake-build*
src/lang/bckps/*
.add_build_time
.vscode/*
upload_config.ini
upload_config.ini
src/lang/intl_hu.h
src/lang/intl_ro.h
24 changes: 24 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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}
2 changes: 1 addition & 1 deletion src/sensors/bh1750/bh1750.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "helpers.h"
#include "html-content.h"
#include "webserver.h"
#include "BH1750.h" //unfortunate sensor class name clash
#include <BH1750.h> //unfortunate sensor class name clash

namespace BH17 {
extern const char KEY[] PROGMEM;
Expand Down

0 comments on commit 6510b4e

Please sign in to comment.