-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatformio.ini
More file actions
116 lines (96 loc) · 2.22 KB
/
platformio.ini
File metadata and controls
116 lines (96 loc) · 2.22 KB
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
; 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]
default_envs = esp8266
[env]
framework = arduino
build_flags =
-std=gnu++17
-O3
-D HOSTNAME='"GreenThing"'
-D USE_WIFI
-D USE_MQTT
-D USE_DISPLAY
-D USE_OTA
-D I2C_SPEED=10000
-D MQTT_SERV='"broker.hivemq.com"'
-D MQTT_PORT=1883
-D MQTT_USER='"user"'
-D MQTT_PASS='"pass"'
build_unflags = -std=gnu++11
lib_deps =
bblanchon/ArduinoJson@^7.4.1
tzapu/WiFiManager@^2.0.17
robtillaart/I2C_LCD@^0.2.4
fbiego/ESP32Time@^2.0.6
https://github.com/DarekParodia/RCWL_1X05
adafruit/Adafruit BMP280 Library@^2.6.0
knolleary/PubSubClient@^2.8
paulstoffregen/OneWire @ ^2.3.7
milesburton/DallasTemperature @ ^3.11.0
lib_ldf_mode = chain+
monitor_speed = 115200
upload_speed = 921600
; ESP32
[esp32]
platform = espressif32
board = denky32
build_flags =
-D ESP32
lib_deps =
${env.lib_deps}
; ESP8266
[esp8266]
platform = espressif8266
board = d1_mini_lite
build_flags =
-D ESP8266
lib_deps =
${env.lib_deps}
[env:esp32]
extends =
esp32
build_flags =
${env.build_flags}
${esp32.build_flags}
build_unflags =
${env.build_unflags}
lib_deps =
${esp32.lib_deps}
upload_speed = ${env.upload_speed}
monitor_speed = ${env.monitor_speed}
[env:esp8266]
extends =
esp8266
build_flags =
${env.build_flags}
${esp8266.build_flags}
build_unflags =
${env.build_unflags}
lib_deps =
${esp8266.lib_deps}
upload_speed = ${env.upload_speed}
monitor_speed = ${env.monitor_speed}
[env:esp8266_ota]
extends =
esp8266
build_flags =
${env.build_flags}
${esp8266.build_flags}
-D OTA
build_unflags =
${env.build_unflags}
lib_deps =
${esp8266.lib_deps}
upload_protocol = espota
upload_port = 192.168.1.216
; =========================================================
; END
; =========================================================