-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathplatformio.ini
113 lines (106 loc) · 3.24 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
[platformio]
src_dir = ./Arduino/PCF8574_8Relay
; env_default = esp32dev-mqtt
; env_default = nodemcuv2-mqtt
[common]
framework = arduino
build_flags =
-w
-D PIO_PLATFORM
lib_deps =
;PubSubClient
MQTT
WebSockets
ArduinoJson
WiFiManager=https://github.com/tzapu/WiFiManager/archive/development.zip
xreef/PCF8574 library
monitor_speed = 115200
upload_speed = 115200
upload_speed_fast = 921600
targets_eum = erase, upload, monitor
targets_um = upload, monitor
# see: http://docs.platformio.org/en/latest/platforms/espressif32.html
[common:esp32]
framework = ${common.framework}
platform = espressif32
;platform = https://github.com/platformio/platform-espressif32.git#feature/stage
build_flags =
${common.build_flags}
-D ARDUINO_ARCH_ESP32
-D SDA_PIN=21
-D SCL_PIN=22
monitor_speed = ${common.monitor_speed}
upload_speed = ${common.upload_speed}
upload_speed_fast = ${common.upload_speed_fast}
lib_deps =
${common.lib_deps}
lib_ignore =
DDUpdateUploadServer
# see: http://docs.platformio.org/en/latest/platforms/espressif8266.html
[common:esp8266]
framework = ${common.framework}
board = nodemcuv2
# ------------------------------------------------------------------------------
# PLATFORM:
# !! DO NOT confuse platformio's ESP8266 development platform with Arduino core for ESP8266
# We use Arduino Core 2.4.2 (platformIO 1.8.0) as default
#
# arduino core 2.3.0 = platformIO 1.5.0
# arduino core 2.4.0 = platformIO 1.6.0
# arduino core 2.4.1 = platformIO 1.7.3
# arduino core 2.4.2 = platformIO 1.8.0
# arduino core 2.5.2 = platformIO 2.2.3
# arduino core stage = platformIO feature#stage
# ------------------------------------------------------------------------------
arduino_core_2_3_0 = [email protected]
arduino_core_2_4_0 = [email protected]
arduino_core_2_4_1 = [email protected]
arduino_core_2_4_2 = [email protected]
arduino_core_2_5_2 = [email protected]
arduino_core_stage = https://github.com/platformio/platform-espressif8266.git#feature/stage
platform = espressif8266
monitor_speed = ${common.monitor_speed}
board_build.flash_mode = dio
upload_speed = ${common.upload_speed}
upload_speed_fast = ${common.upload_speed_fast}
upload_resetmethod = nodemcu
build_flags =
${common.build_flags}
-D PIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
-Teagle.flash.4m3m.ld
-D SDA_PIN=4
-D SCL_PIN=5
lib_deps =
${common.lib_deps}
https://github.com/debsahu/DDUpdateUploadServer.git
lib_ignore =
none
[env:esp32dev-mqtt]
; board = esp32dev
board = lolin_d32
framework = ${common.framework}
platform = ${common:esp32.platform}
monitor_speed = ${common:esp32.monitor_speed}
upload_speed = ${common:esp32.upload_speed_fast}
build_flags =
${common:esp32.build_flags}
lib_deps =
${common:esp32.lib_deps}
PubSubClient
lib_ignore =
${common:esp32.lib_ignore}
; targets = ${common.targets_eum}
[env:nodemcuv2-mqtt]
board = ${common:esp8266.board}
framework = ${common:esp8266.framework}
platform = ${common:esp8266.platform}
build_flags =
${common:esp8266.build_flags}
monitor_speed = ${common:esp8266.monitor_speed}
upload_speed = ${common:esp8266.upload_speed}
upload_resetmethod = ${common:esp8266.upload_resetmethod}
lib_deps =
${common:esp8266.lib_deps}
lib_ignore =
${common:esp8266.lib_ignore}
;targets = ${common.targets_eum}