Skip to content

Commit f552a76

Browse files
authored
Remove duplication from platformio.ini (#315)
* remove duplication from platformio.ini * fix env names * pin framework-arduinoespressif32 version
1 parent 289b85d commit f552a76

File tree

1 file changed

+26
-142
lines changed

1 file changed

+26
-142
lines changed

platformio.ini

+26-142
Original file line numberDiff line numberDiff line change
@@ -17,59 +17,27 @@ build_flags =
1717
-DMATRIX_WIDTH=32 ; Pixel cols
1818
-DMATRIX_HEIGHT=8 ; Pixel rows
1919
lib_deps =
20-
links2004/WebSockets@^2.4.0
21-
knolleary/PubSubClient@^2.8
22-
bblanchon/ArduinoJson@^5.13.4
23-
adafruit/Adafruit GFX Library@^1.10.5
24-
fastled/FastLED@^3.4.0
25-
beegee-tokyo/DHT sensor library for ESPx@^1.17
26-
powerbroker2/DFPlayerMini_Fast@^1.2.0
27-
adafruit/Adafruit BusIO@^1.7.2
2820
adafruit/Adafruit BME280 Library@^2.0.2
21+
adafruit/Adafruit BME680 Library@^2.0.1
2922
adafruit/Adafruit BMP280 Library@^2.6.1
23+
adafruit/Adafruit BusIO@^1.7.2
24+
adafruit/Adafruit GFX Library@^1.10.5
25+
adafruit/Adafruit SHT31 Library@^2.2.2
3026
adafruit/Adafruit Unified Sensor@^1.1.4
31-
LightDependentResistor=https://github.com/QuentinCG/Arduino-Light-Dependent-Resistor-Library.git
32-
ColorConverter=https://github.com/luisllamasbinaburo/Arduino-ColorConverter.git
33-
TimeLib = https://github.com/PaulStoffregen/Time.git
34-
marcmerlin/FastLED NeoMatrix@^1.2
27+
arduino-libraries/ArduinoHttpClient@^0.4.0
3528
bakercp/CRC32 @ 2.0.0
36-
adafruit/Adafruit SHT31 Library@^2.2.2
37-
38-
[env:ESP32_d1_mini32]
39-
platform = espressif32
40-
board = wemos_d1_mini32
41-
framework = ${common.framework}
42-
board_build.f_cpu = 80000000L
43-
monitor_speed = ${common.monitor_speed}
44-
extra_scripts = ${common.extra_scripts}
45-
upload_speed = ${common.upload_speed}
46-
build_flags =
47-
${common.build_flags}
48-
-DLDR_PIN=A0
49-
-DMATRIX_PIN=27
50-
-DDEFAULT_PIN_SCL="Pin_D1"
51-
-DDEFAULT_PIN_SDA="Pin_D3"
52-
-DDEFAULT_PIN_DFPRX="Pin_D7"
53-
-DDEFAULT_PIN_DFPTX="Pin_D8"
54-
-DDEFAULT_PIN_ONEWIRE="Pin_D1"
55-
-DDEFAULT_MATRIX_TYPE=1
56-
-DDEFAULT_LDR=GL5516
57-
-DVBAT_PIN=0
58-
platform_packages =
59-
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
60-
toolchain-xtensa32@~2.80400.0
61-
lib_deps =
62-
${common.lib_deps}
63-
WiFiManager = https://github.com/tzapu/WiFiManager.git#v2.0.15-rc.1
64-
plerup/EspSoftwareSerial@^6.11.4
65-
fastled/FastLED@^3.5.0
66-
adafruit/Adafruit BME680 Library@^2.0.1
67-
adafruit/Adafruit BMP280 Library@^2.6.1
29+
bblanchon/ArduinoJson@^5.13.4
30+
beegee-tokyo/DHT sensor library for ESPx@^1.17
6831
claws/BH1750@^1.2.0
32+
ColorConverter=https://github.com/luisllamasbinaburo/Arduino-ColorConverter.git
33+
fastled/FastLED@^3.4.0
34+
knolleary/PubSubClient@^2.8
35+
LightDependentResistor=https://github.com/QuentinCG/Arduino-Light-Dependent-Resistor-Library.git
36+
links2004/WebSockets@^2.4.0
37+
marcmerlin/FastLED NeoMatrix@^1.2
38+
powerbroker2/DFPlayerMini_Fast@^1.2.0
6939
robtillaart/Max44009@^0.5.2
70-
arduino-libraries/ArduinoHttpClient@^0.4.0
71-
Hash = https://github.com/bbx10/Hash_tng.git
72-
adafruit/Adafruit SHT31 Library@^2.2.2
40+
TimeLib = https://github.com/PaulStoffregen/Time.git
7341

7442
[env:ESP32_generic]
7543
platform = espressif32
@@ -92,20 +60,14 @@ build_flags =
9260
-DDEFAULT_LDR=GL5516
9361
-DVBAT_PIN=0
9462
platform_packages =
95-
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
63+
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.14
9664
toolchain-xtensa32@~2.80400.0
9765
lib_deps =
9866
${common.lib_deps}
99-
WiFiManager = https://github.com/tzapu/WiFiManager.git#v2.0.15-rc.1
100-
plerup/EspSoftwareSerial@^6.11.4
10167
fastled/FastLED@^3.5.0
102-
adafruit/Adafruit BME680 Library@^2.0.1
103-
adafruit/Adafruit BMP280 Library@^2.6.1
104-
claws/BH1750@^1.2.0
105-
robtillaart/Max44009@^0.5.2
106-
arduino-libraries/ArduinoHttpClient@^0.4.0
10768
Hash = https://github.com/bbx10/Hash_tng.git
108-
adafruit/Adafruit SHT31 Library@^2.2.2
69+
plerup/EspSoftwareSerial@^6.11.4
70+
WiFiManager = https://github.com/tzapu/WiFiManager.git#v2.0.15-rc.1
10971

11072
[env:ESP8266_generic]
11173
@@ -129,89 +91,24 @@ build_flags =
12991
-DVBAT_PIN=0
13092
lib_deps =
13193
${common.lib_deps}
132-
tzapu/WiFiManager@^0.16.0
133-
adafruit/Adafruit BME680 Library@^2.0.1
134-
adafruit/Adafruit BMP280 Library@^2.6.1
135-
claws/BH1750@^1.2.0
136-
robtillaart/Max44009@^0.5.2
137-
arduino-libraries/ArduinoHttpClient@^0.4.0
13894
mr-glt/SHA-1 Hash@^1.1.0
139-
adafruit/Adafruit SHT31 Library@^2.2.2
95+
tzapu/WiFiManager@^0.16.0
14096

14197
[env:ESP8266_d1_mini]
142-
98+
extends = env:ESP8266_generic
14399
monitor_filters = esp8266_exception_decoder
144100
board = d1_mini
145-
framework = ${common.framework}
146-
board_build.filesystem = littlefs
147-
monitor_speed = ${common.monitor_speed}
148-
extra_scripts = ${common.extra_scripts}
149-
upload_speed = ${common.upload_speed}
150-
build_flags =
151-
${common.build_flags}
152-
-DLDR_PIN=A0
153-
-DMATRIX_PIN=D2
154-
-DDEFAULT_PIN_SCL="Pin_D1"
155-
-DDEFAULT_PIN_SDA="Pin_D3"
156-
-DDEFAULT_PIN_DFPRX="Pin_D7"
157-
-DDEFAULT_PIN_DFPTX="Pin_D8"
158-
-DDEFAULT_PIN_ONEWIRE="Pin_D1"
159-
-DDEFAULT_MATRIX_TYPE=1
160-
-DDEFAULT_LDR=GL5516
161-
-DVBAT_PIN=0
162-
lib_deps =
163-
${common.lib_deps}
164-
tzapu/WiFiManager@^0.16.0
165-
adafruit/Adafruit BME680 Library@^2.0.1
166-
adafruit/Adafruit BMP280 Library@^2.6.1
167-
claws/BH1750@^1.2.0
168-
robtillaart/Max44009@^0.5.2
169-
arduino-libraries/ArduinoHttpClient@^0.4.0
170-
mr-glt/SHA-1 Hash@^1.1.0
171-
adafruit/Adafruit SHT31 Library@^2.2.2
172101

173102
[env:ESP8266_nodemcuv2]
174-
103+
extends = env:ESP8266_generic
175104
board = nodemcuv2
176-
framework = ${common.framework}
177-
board_build.filesystem = littlefs
178-
monitor_speed = ${common.monitor_speed}
179-
extra_scripts = ${common.extra_scripts}
180-
upload_speed = ${common.upload_speed}
181-
build_flags =
182-
${common.build_flags}
183-
-DLDR_PIN=A0
184-
-DMATRIX_PIN=D2
185-
-DDEFAULT_PIN_SCL="Pin_D1"
186-
-DDEFAULT_PIN_SDA="Pin_D3"
187-
-DDEFAULT_PIN_DFPRX="Pin_D7"
188-
-DDEFAULT_PIN_DFPTX="Pin_D8"
189-
-DDEFAULT_PIN_ONEWIRE="Pin_D1"
190-
-DDEFAULT_MATRIX_TYPE=1
191-
-DDEFAULT_LDR=GL5516
192-
-DVBAT_PIN=0
193-
lib_deps =
194-
${common.lib_deps}
195-
tzapu/WiFiManager@^0.16.0
196-
adafruit/Adafruit BME680 Library@^2.0.1
197-
adafruit/Adafruit BMP280 Library@^2.6.1
198-
claws/BH1750@^1.2.0
199-
robtillaart/Max44009@^0.5.2
200-
arduino-libraries/ArduinoHttpClient@^0.4.0
201-
mr-glt/SHA-1 Hash@^1.1.0
202-
adafruit/Adafruit SHT31 Library@^2.2.2
105+
106+
[env:ESP32_d1_mini32]
107+
extends = env:ESP32_generic
108+
board = wemos_d1_mini32
203109

204110
[env:ESP32_ulanzi]
205-
platform = espressif32
206-
board = esp32dev
207-
framework = ${common.framework}
208-
board_build.f_cpu = 80000000L
209-
monitor_speed = ${common.monitor_speed}
210-
extra_scripts = ${common.extra_scripts}
211-
upload_speed = ${common.upload_speed}
212-
platform_packages =
213-
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git
214-
toolchain-xtensa32@~2.80400.0
111+
extends = env:ESP32_generic
215112
build_flags =
216113
${common.build_flags}
217114
-DLDR_PIN=A7
@@ -227,16 +124,3 @@ build_flags =
227124
-DDEFAULT_LDR=GL5516
228125
-DMIN_BATTERY=475
229126
-DMAX_BATTERY=665
230-
lib_deps =
231-
${common.lib_deps}
232-
WiFiManager = https://github.com/tzapu/WiFiManager.git#v2.0.15-rc.1
233-
fastled/FastLED@^3.5.0
234-
arduino-libraries/ArduinoHttpClient@^0.4.0
235-
adafruit/Adafruit SHT31 Library @ 2.2.0
236-
Hash = https://github.com/bbx10/Hash_tng.git
237-
plerup/EspSoftwareSerial@^6.11.4
238-
adafruit/Adafruit BME680 Library@^2.0.1
239-
adafruit/Adafruit BMP280 Library@^2.6.1
240-
claws/BH1750@^1.2.0
241-
robtillaart/Max44009@^0.5.2
242-
adafruit/Adafruit SHT31 Library@^2.2.2

0 commit comments

Comments
 (0)