global I2C and SPI pins and mpu6050 interrupt pin default to -1

As can otherwise cause conflicts, must be set in platformio explicitly to the right values

Set in platform io for _max configs
This commit is contained in:
Ewoud
2023-01-11 17:32:19 +01:00
parent 037d7ce456
commit 9944f8dc72
6 changed files with 197 additions and 205 deletions

View File

@@ -58,6 +58,7 @@ default_envs =
wemos_shield_esp32_16MB_LineIn_max
esp32_pico_4MB_max
esp32s2_tinyUF2_PSRAM_max
esp8266pro_16MB_min
src_dir = ./wled00
@@ -644,6 +645,7 @@ build_flags_max =
-D USERMOD_BATTERY_USE_LIPO ;; use new "decharging curve" for LiPo cells
-D USERMOD_BH1750
-D USERMOD_ANIMATED_STAIRCASE
-D HW_PIN_SCL=22 -D HW_PIN_SDA=21 ; WLEDMM several usermods needs I2C to be initialized, change to other values if other pins are used
lib_deps_max =
OneWire@~2.3.5 ; used for USERMOD_FOUR_LINE_DISPLAY and USERMOD_DALLASTEMPERATURE
@@ -706,10 +708,9 @@ board_build.partitions = ${esp32_4MB_min_base.board_build.partitions}
; board_build.partitions = tools/WLED_ESP32-wrover_4MB.csv
[esp32_4MB_all_base]
extends = esp32_4MB_min_base
build_flags = ${esp32_4MB_min_base.build_flags} ${common_mm.build_flags_max} ${common_mm.build_flags_all}
lib_deps = ${esp32_4MB_min_base.lib_deps} ${common_mm.lib_deps_max} ${common_mm.lib_deps_all}
board_build.partitions = ${esp32_4MB_min_base.board_build.partitions}
extends = esp32_4MB_max_base
build_flags = ${esp32_4MB_max_base.build_flags} ${common_mm.build_flags_all}
lib_deps = ${esp32_4MB_max_base.lib_deps} ${common_mm.lib_deps_all}
; board_build.partitions = tools/WLED_ESP32-wrover_4MB.csv
;common default for all V4 min environments
@@ -1043,23 +1044,14 @@ build_flags = ${esp32_4MB_max_base.build_flags}
-D TEMPERATURE_PIN=23
-D FLD_PIN_SCL=-1 -D FLD_PIN_SDA=-1 ; use global!
-D HW_PIN_SCL=22 -D HW_PIN_SDA=21
-D HW_PIN_CLOCKSPI=-1 -D HW_PIN_MOSISPI=-1 -D HW_PIN_MISOSPI=-1 ; WLEDMM: is now also default but just to show we didn't agree on wemos pins for spi yet
-D ENCODER_DT_PIN=35 -D ENCODER_CLK_PIN=5 -D ENCODER_SW_PIN=39 ;WLEDMM spec by @SERG74: use 35 and 39 instead of 18 and 19 (conflicts)
; -D WLED_USE_MY_CONFIG
[wemos_shield_esp32_4MB_all_base]
extends = esp32_4MB_all_base
build_flags = ${esp32_4MB_all_base.build_flags}
-D ABL_MILLIAMPS_DEFAULT=9500 ; Wemos max 10A
-D LEDPIN=16
-D RLYPIN=19
-D BTNPIN=17
-D IRPIN=18
-D AUDIOPIN=-1
-D TEMPERATURE_PIN=23
-D FLD_PIN_SCL=-1 -D FLD_PIN_SDA=-1 ; use global!
-D HW_PIN_SCL=22 -D HW_PIN_SDA=21
-D ENCODER_DT_PIN=35 -D ENCODER_CLK_PIN=5 -D ENCODER_SW_PIN=39 ;WLEDMM spec by @SERG74: use 35 and 39 instead of 18 and 19 (conflicts)
; -D WLED_USE_MY_CONFIG
extends = wemos_shield_esp32_4MB_max_base
build_flags = ${wemos_shield_esp32_4MB_max_base.build_flags} ${common_mm.build_flags_all}
lib_deps = ${wemos_shield_esp32_4MB_max_base.lib_deps} ${common_mm.lib_deps_all}
[env:wemos_shield_esp32_4MB_max]
extends = wemos_shield_esp32_4MB_max_base