diff --git a/platformio_override.sample.ini b/platformio_override.sample.ini index 16e73be007..d58607cffc 100644 --- a/platformio_override.sample.ini +++ b/platformio_override.sample.ini @@ -33,7 +33,12 @@ build_unflags = ${common.build_unflags} build_flags = ${common.build_flags} ${esp8266.build_flags} ; ; *** To use the below defines/overrides, copy and paste each onto its own line just below build_flags in the section above. -; +; *** Note: on adding custom usermods +; custom_usermods entries are a separate key in the env section (not inside build_flags). Place them on their own line in the env. +; Multiple usermods are separated by a space, the names can be found in the library.json file of the usermod. +; Example: use the default usermods from the esp32dev env and add the Temperature and four_line_display_ALT usermods +; custom_usermods = ${env:esp32dev.custom_usermods} Temperature four_line_display_ALT +; ; Set a release name that may be used to distinguish required binary for flashing ; -D WLED_RELEASE_NAME=\"ESP32_MULTI_USREMODS\" ; @@ -98,17 +103,17 @@ build_flags = ${common.build_flags} ${esp8266.build_flags} ; -D WLED_DEBUG_PORT=7868 ; ; Use Autosave usermod and set it to do save after 90s -; -D USERMOD_AUTO_SAVE +; custom_usermods = ${env:esp32dev.custom_usermods} auto_save ; -D AUTOSAVE_AFTER_SEC=90 ; ; Use AHT10/AHT15/AHT20 usermod -; -D USERMOD_AHT10 +; custom_usermods = ${env:esp32dev.custom_usermods} AHT10_v2 ; ; Use INA226 usermod -; -D USERMOD_INA226 +; custom_usermods = ${env:esp32dev.custom_usermods} INA226_v2 ; ; Use 4 Line Display usermod with SPI display -; -D USERMOD_FOUR_LINE_DISPLAY +; custom_usermods = ${env:esp32dev.custom_usermods} four_line_display_ALT ; -DFLD_SPI_DEFAULT ; -D FLD_TYPE=SSD1306_SPI64 ; -D FLD_PIN_CLOCKSPI=14 @@ -118,22 +123,22 @@ build_flags = ${common.build_flags} ${esp8266.build_flags} ; -D FLD_PIN_RESET=27 ; ; Use Rotary encoder usermod (in conjunction with 4LD) -; -D USERMOD_ROTARY_ENCODER_UI +; custom_usermods = ${env:esp32dev.custom_usermods} rotary_encoder_ui_ALT ; -D ENCODER_DT_PIN=5 ; -D ENCODER_CLK_PIN=18 ; -D ENCODER_SW_PIN=19 ; ; Use Dallas DS18B20 temperature sensor usermod and configure it to use GPIO13 -; -D USERMOD_DALLASTEMPERATURE +; custom_usermods = ${env:esp32dev.custom_usermods} Temperature ; -D TEMPERATURE_PIN=13 ; ; Use Multi Relay usermod and configure it to use 6 relays and appropriate GPIO -; -D USERMOD_MULTI_RELAY +; custom_usermods = ${env:esp32dev.custom_usermods} multi_relay ; -D MULTI_RELAY_MAX_RELAYS=6 ; -D MULTI_RELAY_PINS=12,23,22,21,24,25 ; ; Use PIR sensor usermod and configure it to use GPIO4 and timer of 60s -; -D USERMOD_PIRSWITCH +; custom_usermods = ${env:esp32dev.custom_usermods} PIR_sensor_switch ; -D PIR_SENSOR_PIN=4 # use -1 to disable usermod ; -D PIR_SENSOR_OFF_SEC=60 ; -D PIR_SENSOR_MAX_SENSORS=2 # max allowable sensors (uses OR logic for triggering) @@ -146,12 +151,12 @@ build_flags = ${common.build_flags} ${esp8266.build_flags} ; -D I2S_CKPIN=19 ; ; Use PWM fan usermod -; -D USERMOD_PWM_FAN +; custom_usermods = ${env:esp32dev.custom_usermods} PWM_fan ; -D TACHO_PIN=33 ; -D PWM_PIN=32 ; ; Use POV Display usermod -; -D USERMOD_POV_DISPLAY +; custom_usermods = ${env:esp32dev.custom_usermods} pov_display ; Use built-in or custom LED as a status indicator (assumes LED is connected to GPIO16) ; -D STATUSLED=16 ; @@ -375,6 +380,7 @@ board_upload.maximum_size = 2097152 extends = esp32 ;; use default esp32 platform board = esp32dev upload_speed = 460800 +custom_usermods = ${env:esp32dev.custom_usermods} Temperature four_line_display_ALT build_flags = ${common.build_flags} ${esp32.build_flags} -D WLED_RELEASE_NAME=\"ESP32_wemos_shield\" -D DATA_PINS=16 @@ -382,12 +388,8 @@ build_flags = ${common.build_flags} ${esp32.build_flags} -D BTNPIN=17 -D IRPIN=18 -UWLED_USE_MY_CONFIG - -D USERMOD_DALLASTEMPERATURE - -D USERMOD_FOUR_LINE_DISPLAY -D TEMPERATURE_PIN=23 lib_deps = ${esp32.lib_deps} - OneWire@~2.3.5 ;; needed for USERMOD_DALLASTEMPERATURE - olikraus/U8g2 @ ^2.28.8 ;; needed for USERMOD_FOUR_LINE_DISPLAY board_build.partitions = ${esp32.default_partitions} [env:esp32_pico-D4] @@ -478,7 +480,8 @@ platform = ${esp8266.platform_wled_default} platform_packages = ${esp8266.platform_packages} board_build.ldscript = ${common.ldscript_1m128k} build_unflags = ${common.build_unflags} -build_flags = ${common.build_flags} ${esp8266.build_flags} -D WLED_DISABLE_OTA -D USERMOD_MY9291 +custom_usermods = ${env:esp01_1m_full.custom_usermods} MY9291 +build_flags = ${common.build_flags} ${esp8266.build_flags} -D WLED_DISABLE_OTA lib_deps = ${esp8266.lib_deps} # ------------------------------------------------------------------------------ diff --git a/usermods/EleksTube_IPS/library.json.disabled b/usermods/EleksTube_IPS/library.json.disabled index d143638e47..53aec05989 100644 --- a/usermods/EleksTube_IPS/library.json.disabled +++ b/usermods/EleksTube_IPS/library.json.disabled @@ -1,5 +1,5 @@ { - "name:": "EleksTube_IPS", + "name": "EleksTube_IPS", "build": { "libArchive": false }, "dependencies": { "TFT_eSPI" : "2.5.33" diff --git a/usermods/ST7789_display/library.json.disabled b/usermods/ST7789_display/library.json.disabled index 725e20a65a..ac47d245ed 100644 --- a/usermods/ST7789_display/library.json.disabled +++ b/usermods/ST7789_display/library.json.disabled @@ -1,4 +1,4 @@ { - "name:": "ST7789_display", + "name": "ST7789_display", "build": { "libArchive": false } } \ No newline at end of file diff --git a/usermods/pov_display/library.json b/usermods/pov_display/library.json index 461b1e2d48..cd0272554c 100644 --- a/usermods/pov_display/library.json +++ b/usermods/pov_display/library.json @@ -1,5 +1,5 @@ { - "name:": "pov_display", + "name": "pov_display", "build": { "libArchive": false}, "platforms": ["espressif32"] }