-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
155 lines (138 loc) · 3.44 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
; 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]
name = "ESP WiFi Thermometer"
default_envs =
esp32dev
esp32dev_debug
esp32dev_ota
esp32dev_ota_debug
esp32dev_dsm
esp32dev_dsm_debug
esp_wroom_02
esp_wroom_02_debug
esp_wroom_02_ota
esp_wroom_02_ota_debug
esp_wroom_02_dsm
esp_wroom_02_dsm_debug
[env]
framework = arduino
monitor_speed = 115200
upload_speed = 921600
extra_scripts =
pre:shared/compress_web.py
pre:shared/generate_hash_header.py
pre:shared/generate_version_header.py
lib_deps =
ArduinoOTA
ESPAsyncWebServer = https://github.com/me-no-dev/ESPAsyncWebServer.git
marvinroger/AsyncMqttClient@^0.9.0
adafruit/DHT sensor library@^1.4.4
milesburton/DallasTemperature@^3.11.0
board_build.embed_txtfiles =
wifissid.txt
wifipass.txt
otapass.txt
mqttuser.txt
mqttpass.txt
data/index.html
data/error.html
board_build.embed_files =
data/gzip/main.css.gz
data/gzip/index.js.gz
data/gzip/manifest.json.gz
data/gzip/favicon.ico.gz
data/gzip/favicon.png.gz
data/gzip/favicon.svg.gz
; The C++ version is a default for platforms that don't specify one.
build_flags =
-std=c++11
-Wall
test_framework = unity
[debug]
build_type = debug
build_flags =
-D CORE_DEBUG_LEVEL=5
-D DHT_DEBUG
[env:native]
platform = native
framework =
lib_deps = UZLibGzipWrapper
[env:native_debug]
extends = env:native, debug
build_flags =
${env:native.build_flags}
${debug.build_flags}
[env:esp32dev]
platform = espressif32@^6.4.0
board = esp32dev
[env:esp32dev_debug]
extends = env:esp32dev, debug
build_flags =
${env:esp32dev.build_flags}
${debug.build_flags}
[env:esp32dev_ota]
extends = env:esp32dev
upload_protocol = espota
upload_port = esp-wifi-thermometer.local
extra_scripts =
${env.extra_scripts}
post:shared/read_ota_pass.py
build_flags =
${env:esp32dev.build_flags}
-D ENABLE_ARDUINO_OTA=1
[env:esp32dev_ota_debug]
extends = env:esp32dev_ota, debug
build_flags =
${env:esp32dev_ota.build_flags}
${debug.build_flags}
[env:esp32dev_dsm]
extends = env:esp32dev
build_flags =
${env:esp32dev.build_flags}
-D ENABLE_DEEP_SLEEP_MODE=1
[env:esp32dev_dsm_debug]
extends = env:esp32dev_dsm, debug
build_flags =
${env:esp32dev_dsm.build_flags}
${debug.build_flags}
[env:esp_wroom_02]
platform = https://github.com/ToMe25/platform-espressif8266.git#embed_files
board = esp_wroom_02
[env:esp_wroom_02_debug]
extends = env:esp_wroom_02, debug
build_flags =
${env:esp_wroom_02.build_flags}
${debug.build_flags}
[env:esp_wroom_02_ota]
extends = env:esp_wroom_02
upload_protocol = espota
upload_port = esp-wifi-thermometer.local
extra_scripts =
${env.extra_scripts}
post:shared/read_ota_pass.py
build_flags =
${env:esp_wroom_02.build_flags}
-D ENABLE_ARDUINO_OTA=1
[env:esp_wroom_02_ota_debug]
extends = env:esp_wroom_02_ota, debug
build_flags =
${env:esp_wroom_02_ota.build_flags}
${debug.build_flags}
[env:esp_wroom_02_dsm]
extends = env:esp_wroom_02
build_flags =
${env:esp_wroom_02.build_flags}
-D ENABLE_DEEP_SLEEP_MODE=1
[env:esp_wroom_02_dsm_debug]
extends = env:esp_wroom_02_dsm, debug
build_flags =
${env:esp_wroom_02_dsm.build_flags}
${debug.build_flags}