From 83e0068ed755d335afa8e9168ebd92468a853ca9 Mon Sep 17 00:00:00 2001 From: Lukas Schmid Date: Tue, 20 Jun 2023 20:00:57 +0200 Subject: [PATCH] Removed incorrect usermods file. Moved target definition from platformio.ini to platformio_override.ini in usermod folder --- platformio.ini | 12 ------- .../platformio_override.ini | 10 ++++++ .../ULC_Battery_Management/usermods_list.cpp | 31 ------------------- 3 files changed, 10 insertions(+), 43 deletions(-) create mode 100644 usermods/ULC_Battery_Management/platformio_override.ini delete mode 100644 usermods/ULC_Battery_Management/usermods_list.cpp diff --git a/platformio.ini b/platformio.ini index 6b79b58c..6e478f68 100644 --- a/platformio.ini +++ b/platformio.ini @@ -779,16 +779,4 @@ monitor_filters = esp32_exception_decoder lib_deps = ${esp32.lib_deps} TFT_eSPI @ ^2.3.70 -board_build.partitions = ${esp32.default_partitions} - - -# ------------------------------------------------------------------------------ -# NetCube Systems Universal Light Controller -# ------------------------------------------------------------------------------ -[env:esp32_ulc] -board = esp32-poe -build_unflags = ${common.build_unflags} -build_flags = ${common.build_flags_esp32} -D WLED_RELEASE_NAME=ESP32_ULC -D RLYPIN=-1 -D WLED_USE_ETHERNET -D WLED_ETH_DEFAULT=6 -D LEDPIN=14 -D DEFAULT_LED_COUNT=37 -D APL_MILLIAMPS_DEFAULT=2500 -D BTNPIN=-1 -D WLED_DISABLE_BLYNK -D IRPIN=-1 -D USERMOD_ULC_BATTERYMANAGEMENT -D I2CSDAPIN=32 -D I2CSCLPIN=33 -lib_deps = ${esp32.lib_deps} -platform = espressif32@3.2 board_build.partitions = ${esp32.default_partitions} \ No newline at end of file diff --git a/usermods/ULC_Battery_Management/platformio_override.ini b/usermods/ULC_Battery_Management/platformio_override.ini new file mode 100644 index 00000000..c572e524 --- /dev/null +++ b/usermods/ULC_Battery_Management/platformio_override.ini @@ -0,0 +1,10 @@ +# ------------------------------------------------------------------------------ +# NetCube Systems Universal Light Controller +# ------------------------------------------------------------------------------ +[env:esp32_ulc] +board = esp32-poe +build_unflags = ${common.build_unflags} +build_flags = ${common.build_flags_esp32} -D WLED_RELEASE_NAME=ESP32_ULC -D RLYPIN=-1 -D WLED_USE_ETHERNET -D WLED_ETH_DEFAULT=6 -D LEDPIN=14 -D DEFAULT_LED_COUNT=37 -D APL_MILLIAMPS_DEFAULT=2500 -D BTNPIN=-1 -D WLED_DISABLE_BLYNK -D IRPIN=-1 -D USERMOD_ULC_BATTERYMANAGEMENT -D I2CSDAPIN=32 -D I2CSCLPIN=33 +lib_deps = ${esp32.lib_deps} +platform = espressif32@3.2 +board_build.partitions = ${esp32.default_partitions} \ No newline at end of file diff --git a/usermods/ULC_Battery_Management/usermods_list.cpp b/usermods/ULC_Battery_Management/usermods_list.cpp deleted file mode 100644 index 8682f8da..00000000 --- a/usermods/ULC_Battery_Management/usermods_list.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "wled.h" -/* - * Register your v2 usermods here! - */ - -/* - * Add/uncomment your usermod filename here (and once more below) - * || || || - * \/ \/ \/ - */ -//#include "usermod_v2_example.h" -#if (defined(USERMOD_ULC_BATTERYMANAGEMENT) && defined(ARDUINO_ARCH_ESP32)) -#include "../usermods/ULC_Battery_Management/usermod_ulc_batterymanagement.h" -#endif - -//#include "usermod_v2_empty.h" - -void registerUsermods() -{ - /* - * Add your usermod class name here - * || || || - * \/ \/ \/ - */ - //usermods.add(new MyExampleUsermod()); -#if (defined(USERMOD_ULC_BATTERYMANAGEMENT) && defined(ARDUINO_ARCH_ESP32)) - usermods.add(new UsermodULCBatteryManagement()); -#endif - - //usermods.add(new UsermodRenameMe()); -} \ No newline at end of file