forked from krycha88/GUI-Generic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
platformio.ini
215 lines (201 loc) · 6.83 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
; 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
; GUI_Generic_ESP32
; lib_extra_dirs = ~/Documents/Arduino/libraries
[common]
build_flags =
;-fno-exceptions
;-Wno-sign-compare
;-Wno-unused-but-set-variable
;-Wno-unused-variable
-D NDEBUG
-D MIMETYPE_MINIMAL
-D ATOMIC_FS_UPDATE
-D BEARSSL_SSL_BASIC
-D TEMPLATE_BOARD_JSON
-D OPTIONS_HASH='"e3bc65278b88a589d06c3f8316cf0e3b"'
-D BUILD_VERSION='"7.14.10"'
-D SUPLA_ENABLE_GUI
; -D SUPLA_ENABLE_SSL
-D SUPLA_CONFIG
-D SUPLA_OTA
; -D SUPLA_RELAY
; -D SUPLA_BUTTON
; -D SUPLA_ACTION_TRIGGER
; -D SUPLA_LIMIT_SWITCH
; -D SUPLA_ROLLERSHUTTER
; -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
; -D SUPLA_NTC_10K
; -D SUPLA_PZEM_V_3
; -D SUPLA_BMP280
; -D SUPLA_CSE7766
; -D SUPLA_DEEP_SLEEP
; -D SUPLA_MPX_5XXX
; -D SUPLA_ANALOG_READING_KPOP
; -D SUPLA_VL53L0X
; -D SUPLA_DIRECT_LINKS_SENSOR_THERMOMETR
; -D SUPLA_CONDITIONS
; -D SUPLA_RF_BRIDGE
; -D SUPLA_HDC1080
; -D SUPLA_LCD_HD44780
; -D SUPLA_MAX31855
; -D SUPLA_MAX44009_KPOP
; -D SUPLA_BH1750_KPOP
; -D SUPLA_VINDRIKTNING_IKEA_KPOP
; -D SUPLA_PMSX003_KPOP
; -D SUPLA_WT32_ETH01_LAN8720
; -D SUPLA_ETH01_LAN8720
; -D SUPLA_ADE7953
; -D SUPLA_PCF8575
; -D SUPLA_SHT_AUTODETECT
; -D SUPLA_PCF8574
; -D SUPLA_DIRECT_LINKS_MULTI_SENSOR
; -D SUPLA_WAKE_ON_LAN
; -D SUPLA_MODBUS_SDM
; -D SUPLA_MODBUS_SDM_ONE_PHASE
; -D SUPLA_MS5611
; -D SUPLA_BONEIO_32x10A
; -D SUPLA_BONEIO_24x16A
; -D SUPLA_THERMOSTAT
; -D SUPLA_EXCLUDE_LITTLEFS_CONFIG
; -D SUPLA_CC1101
; -D SUPLA_AHTX0
; -D SUPLA_DISABLE_LOGS
[env]
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
;closedcube/ClosedCube SHT31D@^1.5.1
;adafruit/Adafruit Si7021 Library@^1.3.0
;xoseperez/HLW8012 @ ^1.1.1
;RobTillaart/MS5611@^0.3.9
;lsatan/SmartRC-CC1101-Driver-Lib@^2.5.7
;adafruit/Adafruit AHTX0@^2.0.5
extra_scripts = tools/copy_files.py
[esp82xx_common]
framework = arduino
platform = espressif8266@^4.2.0
upload_speed = 256000
monitor_speed = 115200
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
[env:GUI_Generic_1MB]
extends = esp82xx_common
board = esp8285
board_build.ldscript = eagle.flash.1m64.ld
build_flags = ${common.build_flags}
[env:GUI_Generic_1MB-en]
extends = esp82xx_common
board = esp8285
board_build.ldscript = eagle.flash.1m64.ld
build_flags = ${common.build_flags}
-D UI_LANGUAGE=en
[env:GUI_Generic_2MB]
extends = esp82xx_common
board = esp8285
board_build.ldscript = eagle.flash.2m64.ld
build_flags = ${common.build_flags}
[env:GUI_Generic_4MB]
extends = esp82xx_common
board = esp12e
board_build.ldscript = eagle.flash.4m1m.ld
build_flags = ${common.build_flags}
[env:GUI_Generic_minimal]
extends = esp82xx_common
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]
extends = esp82xx_common
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_DEBUG]
extends = esp82xx_common
board = nodemcuv2
board_build.ldscript = eagle.flash.4m1m.ld
build_flags = ${common.build_flags}
-D DEBUG_MODE
[env:GUI_Generic_ESP32]
platform = espressif32@^6.3.2
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.9
board = esp32dev
framework = arduino
monitor_speed = 115200
board_build.f_cpu = 240000000L
board_build.flash_mode = dout
board_build.f_flash = 80000000L
board_build.partitions = min_spiffs.csv
build_flags = ${common.build_flags}
;-D CORE_DEBUG_LEVEL=0
[env:GUI_Generic_ESP32C3]
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.4.1/platform-espressif32-2.0.4.1.zip
board = esp32-c3-devkitm-1
framework = arduino
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32#master
monitor_speed = 115200
board_build.f_cpu = 240000000L
board_build.flash_mode = dout
board_build.f_flash = 80000000L
board_build.partitions = min_spiffs.csv
build_flags = ${common.build_flags}