-
Notifications
You must be signed in to change notification settings - Fork 50
/
platformio.ini
89 lines (81 loc) · 2.55 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
[platformio]
src_dir = ./Arduino/ChooseMQTTPubSub
; src_dir = ./Arduino/MQTT
; src_dir = ./Arduino/PubSubClient
;env_default = nodemcuv3
;env_default = nodemcuv3-pubsub
;env_default = esp32dev
;env_default = esp32dev-pubsub
[common]
framework = arduino
build_flags =
-D PIO_PLATFORM
-w
monitor_speed = 115200
upload_speed_fastest = 921600
upload_speed = 115200
lib_deps =
MQTT
PubSubClient
ArduinoJson
# see: http://docs.platformio.org/en/latest/platforms/espressif8266.html
[common:esp8266]
framework = ${common.framework}
platform = [email protected]
; platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps}
monitor_speed = ${common.monitor_speed}
# see: http://docs.platformio.org/en/latest/platforms/espressif32.html
[common:esp32]
framework = ${common.framework}
platform = [email protected]
;platform = https://github.com/platformio/platform-espressif32.git#feature/stage
build_flags =
${common.build_flags}
-D ARDUINO_ARCH_ESP32
lib_deps = ${common.lib_deps}
[env:nodemcuv3]
platform = ${common:esp8266.platform}
board = nodemcuv2
framework = ${common:esp8266.framework}
monitor_speed = ${common:esp8266.monitor_speed}
board_build.flash_mode = dio
upload_resetmethod = nodemcu
upload_speed = ${common.upload_speed}
build_flags = ${common:esp8266.build_flags}
lib_deps = ${common:esp8266.lib_deps}
;targets = erase, upload, monitor ;uncomment for upload and serial monitor
[env:esp32dev]
board = esp32dev
framework = ${common.framework}
platform = ${common:esp32.platform}
monitor_speed = ${common.monitor_speed}
upload_speed = ${common.upload_speed}
build_flags = ${common:esp32.build_flags}
lib_deps = ${common:esp32.lib_deps}
;targets = upload, monitor ;uncomment for upload and serial monitor
[env:nodemcuv3-pubsub]
platform = ${common:esp8266.platform}
board = nodemcuv2
framework = ${common:esp8266.framework}
monitor_speed = ${common:esp8266.monitor_speed}
board_build.flash_mode = dio
upload_resetmethod = nodemcu
upload_speed = ${common.upload_speed}
build_flags =
-D USE_PUB_SUB
${common:esp8266.build_flags}
lib_deps = ${common:esp8266.lib_deps}
;targets = erase, upload, monitor ;uncomment for upload and serial monitor
[env:esp32dev-pubsub]
board = esp32dev
framework = ${common.framework}
platform = ${common:esp32.platform}
monitor_speed = ${common.monitor_speed}
upload_speed = ${common.upload_speed}
build_flags =
-D USE_PUB_SUB
${common:esp32.build_flags}
lib_deps = ${common:esp32.lib_deps}
;targets = upload, monitor ;uncomment for upload and serial monitor