-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathplatformio.ini
More file actions
161 lines (148 loc) · 4.73 KB
/
platformio.ini
File metadata and controls
161 lines (148 loc) · 4.73 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
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
; 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 =
GUI_Generic_1MB
; GUI_Generic_1MB-en
GUI_Generic_2MB
; GUI_Generic_4MB
; GUI_Generic_minimal
; GUI_Generic_lite
; GUI_Generic_sensors
; GUI_Generic_DEBUG
; GUI_Generic_blank
; lib_extra_dirs = ~/Documents/Arduino/libraries
[common]
build_flags = -D BUILD_VERSION='"GUI-Generic 1.4.3"'
-w
-D ATOMIC_FS_UPDATE
-D BEARSSL_SSL_BASIC
;-D SUPLA_ENABLE_SSL
-D SUPLA_OTA
-D SUPLA_RELAY
-D SUPLA_BUTTON
-D SUPLA_LIMIT_SWITCH
-D SUPLA_ROLLERSHUTTER
-D SUPLA_CONFIG
-D SUPLA_DS18B20
-D SUPLA_DHT11
-D SUPLA_DHT22
-D SUPLA_SI7021_SONOFF
-D SUPLA_BME280
-D SUPLA_SHT3x
-D SUPLA_SI7021
-D SUPLA_MAX6675
-D SUPLA_HC_SR04
-D SUPLA_IMPULSE_COUNTER
-D SUPLA_OLED
-D SUPLA_HLW8012
-D SUPLA_MCP23017
-D SUPLA_RGBW
-D SUPLA_PUSHOVER
-D SUPLA_DIRECT_LINKS
-D SUPLA_LED
[env]
framework = arduino
platform = espressif8266@2.6.3
upload_speed = 256000
monitor_speed = 74880
upload_resetmethod = nodemcu
board_build.flash_mode = dout
;set frequency to 160MHz
board_build.f_cpu = 160000000L
; set frequency to 80MHz
board_build.f_flash = 80000000L
lib_deps =
milesburton/DallasTemperature@^3.9.1
adafruit/DHT sensor library@^1.4.0
paulstoffregen/OneWire@^2.3.5
adafruit/Adafruit BME280 Library@^2.1.1
datacute/DoubleResetDetector@^1.0.3
closedcube/ClosedCube SHT31D@^1.5.1
adafruit/Adafruit Si7021 Library@^1.3.0
xoseperez/HLW8012 @ ^1.1.1
extra_scripts = tools/copy_files.py
[env:GUI_Generic_1MB]
board = esp8285
board_build.ldscript = eagle.flash.1m64.ld
build_flags = ${common.build_flags}
[env:GUI_Generic_1MB-en]
board = esp8285
board_build.ldscript = eagle.flash.1m64.ld
build_flags = ${common.build_flags}
-D UI_LANGUAGE=en
[env:GUI_Generic_2MB]
board = esp8285
board_build.ldscript = eagle.flash.2m64.ld
build_flags = ${common.build_flags}
[env:GUI_Generic_4MB]
board = esp12e
board_build.ldscript = eagle.flash.4m1m.ld
build_flags = ${common.build_flags}
[env:GUI_Generic_minimal]
board = esp8285
board_build.ldscript = eagle.flash.1m64.ld
build_flags = ${common.build_flags}
build_unflags = -D SUPLA_DS18B20
-D SUPLA_DHT11
-D SUPLA_DHT22
-D SUPLA_SI7021_SONOFF
-D SUPLA_BME280
-D SUPLA_SHT3x
-D SUPLA_SI7021
-D SUPLA_MAX6675
-D SUPLA_HC_SR04
-D SUPLA_IMPULSE_COUNTER
[env:GUI_Generic_lite]
board = esp8285
board_build.ldscript = eagle.flash.1m64.ld
build_flags = ${common.build_flags}
build_unflags =
-D SUPLA_DHT11
-D SUPLA_BME280
-D SUPLA_SHT3x
-D SUPLA_SI7021
-D SUPLA_MAX6675
-D SUPLA_HC_SR04
-D SUPLA_IMPULSE_COUNTER
[env:GUI_Generic_sensors]
board = esp8285
board_build.ldscript = eagle.flash.1m64.ld
build_flags = ${common.build_flags}
build_unflags = -D SUPLA_RELAY
-D SUPLA_BUTTON
-D SUPLA_LIMIT_SWITCH
-D SUPLA_ROLLERSHUTTER
-D SUPLA_CONFIG
[env:GUI_Generic_DEBUG]
board = nodemcuv2
board_build.ldscript = eagle.flash.4m1m.ld
build_flags = ${common.build_flags}
-D DEBUG_MODE
[env:GUI_Generic_blank]
board = nodemcuv2
board_build.ldscript = eagle.flash.4m1m.ld
build_flags = ${common.build_flags}
build_unflags = -D SUPLA_OTA
-D SUPLA_RELAY
-D SUPLA_BUTTON
-D SUPLA_LIMIT_SWITCH
-D SUPLA_ROLLERSHUTTER
-D SUPLA_CONFIG
-D SUPLA_DS18B20
-D SUPLA_DHT11
-D SUPLA_DHT22
-D SUPLA_SI7021_SONOFF
-D SUPLA_BME280
-D SUPLA_SHT3x
-D SUPLA_SI7021
-D SUPLA_MAX6675
-D SUPLA_HC_SR04
-D SUPLA_IMPULSE_COUNTER