-
Notifications
You must be signed in to change notification settings - Fork 43
/
platformio.ini
51 lines (43 loc) · 1.26 KB
/
platformio.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[platformio]
; point data_dir to nonexistent directory so that PIO doesn't bother building SPIFFS
data_dir = nonexistent
[env:d1_mini_lite_clone]
platform = espressif8266
upload_speed = 524288
monitor_speed = 115200
board = d1_mini
# Following is necessary for cheap Wemos D1 Lite clones.
# Without this line, flashing succeeds but programs simply don't run on the chip.
board_build.flash_mode = dout
framework = arduino
board_build.ldscript = eagle.flash.1m.ld
custom_nanopb_protos =
+<**/*.proto>
custom_nanopb_options =
--error-on-unmatched
extra_scripts =
pre:pio_tools/gen_data.py
build_flags =
; Disable global instances to save space, disable for serial debugging.
-DNO_GLOBAL_INSTANCES
;-DDEBUG_EEPROM_ROTATE_PORT=Serial
;-DDEBUG_ESP_CORE
;-DDEBUG_ESP_WIFI
;-DDEBUG_ESP_UPDATER
;-DDEBUG_ESP_PORT=Serial
lib_deps =
xoseperez/EEPROM_Rotate@^0.9.2
ottowinter/ESPAsyncWebServer-esphome@^3.0.0
nanopb/Nanopb@^0.4.7
bblanchon/ArduinoJson@^6.20.0
[env:ota]
extends = env:d1_mini_lite_clone
extra_scripts =
pre:pio_tools/gen_data.py
pio_tools/platformio_upload.py
custom_upload_url = http://owie-c024.lan/update
upload_protocol = custom
;board_build.gzip_fw = true
[env:native]
platform = native
debug_test = test_battery_fuel_gauge