-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
111 lines (103 loc) · 3.09 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[platformio]
src_dir = src
build_dir = .pioenvs
build_cache_dir = .cache
default_envs = d1_mini_h1_ota
extra_configs = platformio_user_env.ini
[env:d1_mini_usb]
platform = espressif8266
board = d1_mini
framework = arduino
build_flags = ${esp82xx_defaults.build_flags}
build_unflags = -Wall
monitor_speed = 115200
check_tool = clangtidy
check_flags = clangtidy: --checks=-*,cert-*,clang-analyzer-* --fix
board_build.filesystem = littlefs
board_build.flash_mode = dout
upload_resetmethod = ${usb_defaults.upload_resetmethod}
upload_speed = ${usb_defaults.upload_speed}
upload_protocol = ${usb_defaults.upload_protocol}
upload_port = ${usb_defaults.upload_port}
extra_scripts = ${scripts_defaults.extra_scripts}
lib_deps =
knolleary/PubSubClient@^2.8
bblanchon/ArduinoJson@^6.17.0
jandrassy/TelnetStream@^1.2.1
paulstoffregen/Time@^1.6
tzapu/WiFiManager@^0.16.0
sstaub/Ticker
[env:d1_mini_h1_ota]
platform = espressif8266
board = d1_mini
framework = arduino
build_flags = ${esp82xx_defaults.build_flags}
build_unflags = -Wall
monitor_speed = 115200
check_tool = clangtidy
check_flags = clangtidy: --checks=-*,cert-*,clang-analyzer-* --fix
board_build.filesystem = littlefs
board_build.flash_mode = dout
upload_protocol = ${ota_defaults_h1.upload_protocol}
upload_flags = ${ota_defaults_h1.upload_flags}
upload_port = ${ota_defaults_h1.upload_port}
extra_scripts = ${scripts_defaults.extra_scripts}
lib_deps =
knolleary/PubSubClient@^2.8
bblanchon/ArduinoJson@^6.17.0
jandrassy/TelnetStream@^1.2.1
paulstoffregen/Time@^1.6
tzapu/WiFiManager@^0.16.0
sstaub/Ticker
[env:d1_mini_h2_ota]
platform = espressif8266
board = d1_mini
framework = arduino
build_flags = ${esp82xx_defaults.build_flags}
build_unflags = -Wall
monitor_speed = 115200
check_tool = clangtidy
check_flags = clangtidy: --checks=-*,cert-*,clang-analyzer-* --fix
board_build.filesystem = littlefs
board_build.flash_mode = dout
upload_protocol = ${ota_defaults_h2.upload_protocol}
upload_flags = ${ota_defaults_h2.upload_flags}
upload_port = ${ota_defaults_h2.upload_port}
extra_scripts = ${scripts_defaults.extra_scripts}
lib_deps =
knolleary/PubSubClient@^2.8
bblanchon/ArduinoJson@^6.17.0
jandrassy/TelnetStream@^1.2.1
paulstoffregen/Time@^1.6
tzapu/WiFiManager@^0.16.0
sstaub/Ticker
[scripts_defaults]
extra_scripts = piotools/name-firmware.py
[esp82xx_defaults]
build_flags =
-D NDEBUG
-Wl,-Map,firmware.map
-D SERIAL_BUFFER_SIZE=256
; -D MMU_IRAM_SIZE=0x8000
; -D MMU_ICACHE_SIZE=0x4000
; -D MMU_SEC_HEAP=0x40108000
; -D MMU_SEC_HEAP_SIZE=0x4000
[usb_defaults]
upload_resetmethod = nodemcu
upload_protocol = esptool
upload_speed = 115200
monitor_speed = 115200
upload_port = /dev/cu.usbserial-AR0K74XU
[ota_defaults]
upload_flags = --auth=heisha
upload_protocol = espota
upload_port = 192.168.2.108