This repository has been archived by the owner on Jun 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
144 lines (116 loc) · 4.57 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
; 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
; http://docs.platformio.org/page/projectconf.html
[platformio]
default_envs = nodemcu-current
# ------------------------------------------------------------------------------
# COMMON SETTINGS
# ------------------------------------------------------------------------------
[common]
# Do not confuse PlatformIO's ESP8266 development platform with Arduino Core for
# ESP8266.
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_0 = [email protected]
arduino_core_2_5_1 = [email protected]
arduino_core_2_5_2 = [email protected]
# We use Arduino Core 2.4.2 (PlatformIO 1.8.0) as default
platform_current = [email protected]
platform_testing = [email protected]
platform_latest = [email protected]
board_1m = esp01_1m
board_4m = esp12e
board_nodemcu = nodemcuv2
build_flags = -DSMARTY_BUILD_VERSION=\"0.1.0\" -DSMARTY_BUILD_TIME=$UNIX_TIME
build_flags_1m64 = ${common.build_flags} -Wl,-Teagle.flash.1m64.ld
build_flags_4m1m = ${common.build_flags} -Wl,-Teagle.flash.4m1m.ld
build_flags_nodemcu = ${common.build_flags} -Wl,-Teagle.flash.4m1m.ld
# ------------------------------------------------------------------------------
# ENV SETTINGS
# ------------------------------------------------------------------------------
[env]
framework = arduino
monitor_speed = 115200
upload_speed = 115200
lib_deps =
[email protected] ;ArduinoJson
[email protected] ;DHT
[email protected] ;MQTT
5485@5 ;Streaming
# ------------------------------------------------------------------------------
# DEVELOPMENT BOARDS
# ------------------------------------------------------------------------------
[env:nodemcu-current]
platform = ${common.platform_current}
board = ${common.board_nodemcu}
build_flags = ${common.build_flags_nodemcu} -DDEVICE_NODEMCU
[env:nodemcu-testing]
platform = ${common.platform_testing}
board = ${common.board_nodemcu}
build_flags = ${common.build_flags_nodemcu} -DDEVICE_NODEMCU
[env:nodemcu-latest]
platform = ${common.platform_latest}
board = ${common.board_nodemcu}
build_flags = ${common.build_flags_nodemcu} -DDEVICE_NODEMCU
# ------------------------------------------------------------------------------
# SONOFF BOARDS
# ------------------------------------------------------------------------------
[env:sonoff-basic-current]
platform = ${common.platform_current}
board = ${common.board_1m}
build_flags = ${common.build_flags_1m64} -DDEVICE_SONOFF_BASIC
[env:sonoff-basic-testing]
platform = ${common.platform_testing}
board = ${common.board_1m}
build_flags = ${common.build_flags_1m64} -DDEVICE_SONOFF_BASIC
[env:sonoff-basic-latest]
platform = ${common.platform_latest}
board = ${common.board_1m}
build_flags = ${common.build_flags_1m64} -DDEVICE_SONOFF_BASIC
[env:sonoff-s20-current]
platform = ${common.platform_current}
board = ${common.board_1m}
build_flags = ${common.build_flags_1m64} -DDEVICE_SONOFF_S20
[env:sonoff-s20-testing]
platform = ${common.platform_testing}
board = ${common.board_1m}
build_flags = ${common.build_flags_1m64} -DDEVICE_SONOFF_S20
[env:sonoff-s20-latest]
platform = ${common.platform_latest}
board = ${common.board_1m}
build_flags = ${common.build_flags_1m64} -DDEVICE_SONOFF_S20
# ------------------------------------------------------------------------------
# CUSTOM MADE BOARDS
# ------------------------------------------------------------------------------
[env:custom-v2-current]
platform = ${common.platform_current}
board = ${common.board_4m}
build_flags = ${common.build_flags_4m1m} -DDEVICE_CUSTOM_V2
[env:custom-v2-testing]
platform = ${common.platform_testing}
board = ${common.board_4m}
build_flags = ${common.build_flags_4m1m} -DDEVICE_CUSTOM_V2
[env:custom-v2-latest]
platform = ${common.platform_latest}
board = ${common.board_4m}
build_flags = ${common.build_flags_4m1m} -DDEVICE_CUSTOM_V2
[env:custom-v3-current]
platform = ${common.platform_current}
board = ${common.board_4m}
build_flags = ${common.build_flags_4m1m} -DDEVICE_CUSTOM_V3
[env:custom-v3-testing]
platform = ${common.platform_testing}
board = ${common.board_4m}
build_flags = ${common.build_flags_4m1m} -DDEVICE_CUSTOM_V3
[env:custom-v3-latest]
platform = ${common.platform_latest}
board = ${common.board_4m}
build_flags = ${common.build_flags_4m1m} -DDEVICE_CUSTOM_V3