forked from CircuitSetup/Split-Single-Phase-Energy-Meter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplatformio.ini
170 lines (145 loc) · 4.5 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
165
166
167
168
169
170
#
# Project Configuration File
#
# A detailed documentation with the EXAMPLES is located here:
# http://docs.platformio.org/en/latest/projectconf.html
#
# A sign `#` at the beginning of the line indicates a comment
# Comment lines are ignored.
# Simple and base environment
# [env:mybaseenv]
# platform = %INSTALLED_PLATFORM_NAME_HERE%
# framework =
# board =
#
# Automatic targets - enable auto-uploading
# targets = upload
[platformio]
env_default = emonesp
data_dir = src/data
[common]
version = -DBUILD_TAG=2.4.0
monitor_speed = 115200
[common_esp8266]
lib_deps =
PubSubClient
ESP Async WebServer
../libraries/ATM90E32
[common_esp32]
lib_deps =
PubSubClient
ESP Async WebServer
AsyncTCP
../libraries/ATM90E32
[env:emonesp8266]
platform = espressif8266
framework = arduino
board = esp12e
lib_deps = ${common_esp8266.lib_deps}
src_build_flags = ${common.version} -DWIFI_LED=0 -DENABLE_DEBUG
monitor_speed = ${common.monitor_speed}
[env:emonesp8266_fast]
# Upload at faster baud reate 50s upload reduced to 20s :-)
platform = espressif8266
framework = arduino
board = esp12e
lib_deps = ${common_esp8266.lib_deps}
src_build_flags = ${common.version} -DWIFI_LED=0 -DENABLE_DEBUG
upload_speed=921600
monitor_speed = ${common.monitor_speed}
[env:emonesp8266_ota]
platform = espressif8266
framework = arduino
board = esp12e
upload_port = emonesp.local
lib_deps = ${common_esp8266.lib_deps}
src_build_flags = ${common.version} -DWIFI_LED=0 -DENABLE_DEBUG
monitor_speed = ${common.monitor_speed}
[env:emonesp8266_spiffs]
platform = espressif8266
framework = arduino
board = esp12e
lib_deps = ${common_esp8266.lib_deps}
src_build_flags = ${common.version}
upload_flags = --spiffs
monitor_speed = ${common.monitor_speed}
[env:emonesp8266_deploy]
platform = espressif8266
framework = arduino
board = esp12e
lib_deps = ${common_esp8266.lib_deps}
src_build_flags = !(test -z $TRAVIS_TAG && echo '${common.version}') || echo '-DBUILD_TAG='$TRAVIS_TAG
[env:emonesp01]
platform = espressif8266
framework = arduino
board = esp01
lib_deps = ${common_esp8266.lib_deps}
src_build_flags = ${common.version} -DESP01 -DENABLE_DEBUG
monitor_speed = ${common.monitor_speed}
# http://docs.platformio.org/en/latest/platforms/espressif8266.html#using-arduino-framework-with-staging-version
# Staging Arduino framework and common lib version
[env:emonesp8266_staging]
platform = espressif8266_stage
board = esp12e
framework = arduino
lib_deps = ${common_esp8266.lib_deps}
src_build_flags = ${common.version} -DWIFI_LED=0 -DENABLE_DEBUG
upload_port = emonesp.local
monitor_speed = ${common.monitor_speed}
# staging Arduino framwork and latest libs
[env:emonesp8266_staging_libs]
platform = espressif8266_stage
board = esp12e
framework = arduino
lib_deps = https://github.com/knolleary/pubsubclient, https://github.com/me-no-dev/ESPAsyncWebServer.git, https://github.com/me-no-dev/ESPAsyncTCP.git
src_build_flags = ${common.version} -DWIFI_LED=0 -DENABLE_DEBUG
upload_port = emonesp.local
monitor_speed = ${common.monitor_speed}
[env:emonesp32]
platform = espressif32
framework = arduino
board = esp32dev
lib_deps = ${common_esp32.lib_deps}
src_build_flags = ${common.version}
monitor_speed = ${common.monitor_speed}
[env:emonesp32_fast]
# Upload at faster baud reate 50s upload reduced to 20s :-)
platform = espressi32
framework = arduino
board = esp32dev
lib_deps = ${common_esp32.lib_deps}
src_build_flags = ${common.version}
upload_speed=921600
monitor_speed = ${common.monitor_speed}
[env:emonesp32_ota]
platform = espressif32
framework = arduino
board = esp32dev
upload_port = emonesp.local
lib_deps = ${common_esp32.lib_deps}
src_build_flags = ${common.version}
monitor_speed = ${common.monitor_speed}
[env:emonesp32_spiffs]
platform = espressif32
framework = arduino
board = esp32dev
lib_deps = ${common_esp32.lib_deps}
src_build_flags = ${common.version}
upload_flags = --spiffs
monitor_speed = ${common.monitor_speed}
[env:emonesp32_deploy]
platform = espressif32
framework = arduino
board = esp32dev
lib_deps = ${common_esp32.lib_deps}
src_build_flags = !(test -z $TRAVIS_TAG && echo '${common.version}') || echo '-DBUILD_TAG='$TRAVIS_TAG
# http://docs.platformio.org/en/latest/platforms/espressif8266.html#using-arduino-framework-with-staging-version
# Staging Arduino framework and common lib version
[env:emonesp32_staging]
platform = https://github.com/platformio/platform-espressif32.git#feature/stage
board = esp32dev
framework = arduino
lib_deps = ${common_esp32.lib_deps}
src_build_flags = ${common.version}
upload_port = emonesp.local
monitor_speed = ${common.monitor_speed}