-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathplatformio.ini
164 lines (153 loc) · 4.35 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
156
157
158
159
160
161
162
163
164
; 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_cache_dir = .pio/.cache
default_envs =
8266_thermostat_release_ota
32_thermostat
; ========================================================
[common]
framework = arduino
extra_scripts =
pre:build_number.py
post:move_version_file.py
lib_deps =
BME280
256dpi/MQTT @ ^2.5.2
beegee-tokyo/DHT sensor library for ESPx @ ^1.19
thingpulse/ESP8266 and ESP32 OLED driver for SSD1306 displays @ ^4.6.1
bblanchon/ArduinoJson @ ^6.21.3
thomasfredericks/Bounce2 @ ^2.72
; ========================================================
[esp8266]
framework = ${common.framework}
platform = espressif8266
board = esp07
board_build.flash_mode = dout
board_build.f_cpu = 80000000L
board_build.f_flash = 40000000L
board_build.ldscript = eagle.flash.1m64.ld
extra_scripts =
${common.extra_scripts}
board_build.filesystem = littlefs
build_flags =
-mtarget-align
-Wall
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH
; -D VTABLES_IN_IRAM
; -D VTABLES_IN_FLASH
-D CFG_BOARD_ESP8266=1
-D DEBUG_ESP_PORT=Serial
-D BEARSSL_SSL_BASIC
-D ATOMIC_FS_UPDATE
-D _GNU_SOURCE
monitor_speed = 115200
monitor_port = COM4
; monitor_p
; monilters = time, esp8266_exception_decoder, colorize
monitor_filters = esp8266_exception_decoder
upload_resetmethod = ck
; ========================================================
[env:8266_thermostat_release_ota]
extends = esp8266
extra_scripts =
${common.extra_scripts}
post:compress_firmware.py
lib_deps = ${common.lib_deps}
upload_protocol = espota
; upload_port = prototype.local ;192.168.178.137
upload_port = thermostat-buero.internal
; upload_port = 192.168.178.32 ;wohnzimmer.local
; upload_port = 192.168.178.34 ;kinderzimmer_1.local
; upload_port = 192.168.178.35 ;kinderzimmer_2.local
; ========================================================
[env:8266_thermostat_debug_ota]
extends = esp8266
; build_type = debug
extra_scripts =
${common.extra_scripts}
post:compress_firmware.py
build_flags =
${esp8266.build_flags}
-fexceptions
-D CFG_DEBUG
-D CFG_DEBUG_DISPLAY_VERSION
-DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS
; -D CFG_DEBUG_QUICKSORT
; -DCFG_DEBUG_SENSOR_VALUES
; -DCFG_DEBUG_SNTP
lib_deps = ${common.lib_deps}
upload_protocol = espota
upload_port = prototype.local ;192.168.178.137
; upload_port = buero.local ;192.168.178.31
; upload_port = 192.168.178.32 ;wohnzimmer.local
; upload_port = 192.168.178.34 ;kinderzimmer_1.local
; ========================================================
[env:8266_thermostat_debug_serial]
extends = esp8266
build_type = debug
build_flags =
${esp8266.build_flags}
-D CFG_DEBUG
-D CFG_DEBUG_DISPLAY_VERSION
; -D CFG_DEBUG_QUICKSORT
; -DCFG_DEBUG_SENSOR_VALUES
; -D CFG_DEBUG_SNTP
-fexceptions
-DPIO_FRAMEWORK_ARDUINO_ENABLE_EXCEPTIONS
lib_deps = ${common.lib_deps}
upload_protocol = esptool
upload_speed = 115200
upload_port = COM4
; ========================================================
; ESP 32
; ========================================================
[esp32]
framework = ${common.framework}
platform = espressif32
board = az-delivery-devkit-v4
; board = lolin_d32_pro
build_flags =
-Wall
-D CFG_BOARD_ESP32
; -D DEBUG_ESP_PORT=Serial
extra_scripts = ${common.extra_scripts}
monitor_speed = 115200
monitor_port = COM3
monitor_filters = time, esp32_exception_decoder
; upload_protocol = esp-prog
upload_speed = 115200
upload_resetmethod = ck
; upload_protocol = esptool
; upload_port = COM3
upload_protocol = espota
upload_flags =
--port=8266
upload_port = 192.168.178.120 ;ESP32 (WROOM)
; upload_port = 192.168.178.121 ;ESP32 (WROVER)
; test_build_project_src = yes
[env:32_thermostat]
extends = esp32
lib_deps = ${common.lib_deps}
build_flags = ${esp32.build_flags}
[env:32_thermostat_debug]
extends = esp32
build_type = debug
debug_tool = esp-prog
; debug_init_break = tbreak setup
build_flags =
${env:32_thermostat.build_flags}
-DCFG_DEBUG
-DCFG_DEBUG_DISPLAY_VERSION
; -DCFG_DEBUG_SENSOR_VALUES
-DCFG_DEBUG_SNTP
; debug_build_flags = -O0 -ggdb3 -g3
lib_deps = ${common.lib_deps}