WLED/wled00/usermods_list.cpp

385 lines
8.6 KiB
C++
Raw Normal View History

2020-05-28 02:20:02 +02:00
#include "wled.h"
/*
* Register your v2 usermods here!
* (for v1 usermods using just usermod.cpp, you can ignore this file)
*/
/*
* Add/uncomment your usermod filename here (and once more below)
* || || ||
* \/ \/ \/
*/
2021-06-25 12:15:23 +02:00
//#include "../usermods/EXAMPLE_v2/usermod_v2_example.h"
2021-06-25 01:26:15 +02:00
#ifdef USERMOD_BATTERY
2023-01-03 15:36:35 +01:00
#include "../usermods/Battery/usermod_v2_Battery.h"
#endif
#ifdef USERMOD_DALLASTEMPERATURE
#include "../usermods/Temperature/usermod_temperature.h"
#endif
#ifdef USERMOD_SHT
#include "../usermods/sht/usermod_sht.h"
#endif
2021-06-02 02:01:06 +02:00
#ifdef USERMOD_SN_PHOTORESISTOR
#include "../usermods/SN_Photoresistor/usermod_sn_photoresistor.h"
2021-06-02 02:01:06 +02:00
#endif
2021-10-02 22:45:42 +02:00
#ifdef USERMOD_PWM_FAN
// requires DALLASTEMPERATURE or SHT included before it
#include "../usermods/PWM_fan/usermod_PWM_fan.h"
2021-10-02 22:45:42 +02:00
#endif
2020-12-14 05:43:28 +01:00
#ifdef USERMOD_BUZZER
#include "../usermods/buzzer/usermod_v2_buzzer.h"
2020-12-14 05:43:28 +01:00
#endif
#ifdef USERMOD_SENSORSTOMQTT
#include "../usermods/sensors_to_mqtt/usermod_v2_SensorsToMqtt.h"
#endif
#ifdef USERMOD_PIRSWITCH
#include "../usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h"
#endif
2020-05-28 02:20:02 +02:00
#ifdef USERMOD_MODE_SORT
#include "../usermods/usermod_v2_mode_sort/usermod_v2_mode_sort.h"
#endif
#ifdef USERMOD_BH1750
#include "../usermods/BH1750_v2/usermod_BH1750.h"
#endif
2021-02-13 01:43:16 +01:00
2020-12-25 21:17:30 +01:00
// BME280 v2 usermod. Define "USERMOD_BME280" in my_config.h
#ifdef USERMOD_BME280
#include "../usermods/BME280_v2/usermod_bme280.h"
2020-12-25 21:17:30 +01:00
#endif
#ifdef USERMOD_FOUR_LINE_DISPLAY
2021-10-02 20:19:12 +02:00
#ifdef USE_ALT_DISPlAY
#include "../usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h"
2023-01-06 09:24:29 +01:00
#else
2021-10-02 20:19:12 +02:00
#include "../usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h"
#endif
2021-02-09 17:15:43 +01:00
#endif
2021-02-09 17:15:43 +01:00
#ifdef USERMOD_ROTARY_ENCODER_UI
2021-10-02 20:19:12 +02:00
#ifdef USE_ALT_DISPlAY
#include "../usermods/usermod_v2_rotary_encoder_ui_ALT/usermod_v2_rotary_encoder_ui_ALT.h"
#else
#include "../usermods/usermod_v2_rotary_encoder_ui/usermod_v2_rotary_encoder_ui.h"
#endif
2021-02-09 17:15:43 +01:00
#endif
2021-02-09 17:15:43 +01:00
#ifdef USERMOD_AUTO_SAVE
#include "../usermods/usermod_v2_auto_save/usermod_v2_auto_save.h"
2021-02-09 17:15:43 +01:00
#endif
#ifdef USERMOD_DHT
#include "../usermods/DHT/usermod_dht.h"
#endif
#ifdef USERMOD_VL53L0X_GESTURES
#include "../usermods/VL53L0X_gestures/usermod_vl53l0x_gestures.h"
#endif
#ifdef USERMOD_ANIMATED_STAIRCASE
#include "../usermods/Animated_Staircase/Animated_Staircase.h"
#endif
#ifdef USERMOD_MULTI_RELAY
#include "../usermods/multi_relay/usermod_multi_relay.h"
#endif
#ifdef USERMOD_RTC
#include "../usermods/RTC/usermod_rtc.h"
#endif
#ifdef USERMOD_ELEKSTUBE_IPS
#include "../usermods/EleksTube_IPS/usermod_elekstube_ips.h"
#endif
#ifdef USERMOD_ROTARY_ENCODER_BRIGHTNESS_COLOR
#include "../usermods/usermod_rotary_brightness_color/usermod_rotary_brightness_color.h"
#endif
#ifdef RGB_ROTARY_ENCODER
#include "../usermods/rgb-rotary-encoder/rgb-rotary-encoder.h"
#endif
2021-08-28 21:59:52 +02:00
#ifdef USERMOD_ST7789_DISPLAY
#include "../usermods/ST7789_display/ST7789_Display.h"
2021-08-28 21:59:52 +02:00
#endif
2021-09-30 05:23:32 +02:00
#ifdef USERMOD_SEVEN_SEGMENT
#include "../usermods/seven_segment_display/usermod_v2_seven_segment_display.h"
2021-09-30 05:23:32 +02:00
#endif
#ifdef USERMOD_SSDR
#include "../usermods/seven_segment_display_reloaded/usermod_seven_segment_reloaded.h"
#endif
#ifdef USERMOD_CRONIXIE
#include "../usermods/Cronixie/usermod_cronixie.h"
#endif
#ifdef QUINLED_AN_PENTA
#include "../usermods/quinled-an-penta/quinled-an-penta.h"
#endif
#ifdef USERMOD_WIZLIGHTS
#include "../usermods/wizlights/wizlights.h"
#endif
#ifdef USERMOD_WIREGUARD
#include "../usermods/wireguard/wireguard.h"
#endif
#ifdef USERMOD_WORDCLOCK
#include "../usermods/usermod_v2_word_clock/usermod_v2_word_clock.h"
#endif
#ifdef USERMOD_MY9291
#include "../usermods/MY9291/usermode_MY9291.h"
#endif
#ifdef USERMOD_SI7021_MQTT_HA
#include "../usermods/Si7021_MQTT_HA/usermod_si7021_mqtt_ha.h"
#endif
#ifdef USERMOD_SMARTNEST
#include "../usermods/smartnest/usermod_smartnest.h"
#endif
#ifdef USERMOD_AUDIOREACTIVE
#include "../usermods/audioreactive/audio_reactive.h"
#endif
#ifdef USERMOD_ANALOG_CLOCK
#include "../usermods/Analog_Clock/Analog_Clock.h"
#endif
#ifdef USERMOD_PING_PONG_CLOCK
#include "../usermods/usermod_v2_ping_pong_clock/usermod_v2_ping_pong_clock.h"
#endif
#ifdef USERMOD_ADS1115
#include "../usermods/ADS1115_v2/usermod_ads1115.h"
#endif
2023-01-01 15:13:57 +01:00
#ifdef USERMOD_KLIPPER_PERCENTAGE
#include "..\usermods\usermod_v2_klipper_percentage\usermod_v2_klipper_percentage.h"
#endif
#ifdef USERMOD_BOBLIGHT
#include "../usermods/boblight/boblight.h"
#endif
#ifdef USERMOD_INTERNAL_TEMPERATURE
#include "../usermods/Internal_Temperature_v2/usermod_internal_temperature.h"
#endif
#if defined(WLED_USE_SD_MMC) || defined(WLED_USE_SD_SPI)
// This include of SD.h and SD_MMC.h must happen here, else they won't be
// resolved correctly (when included in mod's header only)
#ifdef WLED_USE_SD_MMC
#include "SD_MMC.h"
2023-01-06 09:24:29 +01:00
#elif defined(WLED_USE_SD_SPI)
#include "SD.h"
#include "SPI.h"
#endif
#include "../usermods/sd_card/usermod_sd_card.h"
#endif
#ifdef USERMOD_PWM_OUTPUTS
#include "../usermods/pwm_outputs/usermod_pwm_outputs.h"
#endif
#ifdef USERMOD_HTTP_PULL_LIGHT_CONTROL
#include "../usermods/usermod_v2_HttpPullLightControl/usermod_v2_HttpPullLightControl.h"
#endif
2020-05-28 02:20:02 +02:00
void registerUsermods()
{
/*
2020-05-28 02:20:02 +02:00
* Add your usermod class name here
* || || ||
* \/ \/ \/
*/
2021-06-25 12:15:23 +02:00
//usermods.add(new MyExampleUsermod());
#ifdef USERMOD_BATTERY
usermods.add(new UsermodBattery());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_DALLASTEMPERATURE
usermods.add(new UsermodTemperature());
#endif
2023-01-06 09:24:29 +01:00
2021-06-02 02:01:06 +02:00
#ifdef USERMOD_SN_PHOTORESISTOR
usermods.add(new Usermod_SN_Photoresistor());
#endif
2023-01-06 09:24:29 +01:00
2021-10-02 22:45:42 +02:00
#ifdef USERMOD_PWM_FAN
usermods.add(new PWMFanUsermod());
#endif
2023-01-06 09:24:29 +01:00
2020-12-14 05:43:28 +01:00
#ifdef USERMOD_BUZZER
usermods.add(new BuzzerUsermod());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_BH1750
usermods.add(new Usermod_BH1750());
#endif
2023-01-06 09:24:29 +01:00
2020-12-25 21:17:30 +01:00
#ifdef USERMOD_BME280
usermods.add(new UsermodBME280());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_SENSORSTOMQTT
usermods.add(new UserMod_SensorsToMQTT());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_PIRSWITCH
usermods.add(new PIRsensorSwitch());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_MODE_SORT
usermods.add(new ModeSortUsermod());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_FOUR_LINE_DISPLAY
2021-02-09 17:15:43 +01:00
usermods.add(new FourLineDisplayUsermod());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_ROTARY_ENCODER_UI
usermods.add(new RotaryEncoderUIUsermod()); // can use USERMOD_FOUR_LINE_DISPLAY
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_AUTO_SAVE
usermods.add(new AutoSaveUsermod()); // can use USERMOD_FOUR_LINE_DISPLAY
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_DHT
usermods.add(new UsermodDHT());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_VL53L0X_GESTURES
usermods.add(new UsermodVL53L0XGestures());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_ANIMATED_STAIRCASE
usermods.add(new Animated_Staircase());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_MULTI_RELAY
usermods.add(new MultiRelay());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_RTC
usermods.add(new RTCUsermod());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_ELEKSTUBE_IPS
usermods.add(new ElekstubeIPSUsermod());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_ROTARY_ENCODER_BRIGHTNESS_COLOR
usermods.add(new RotaryEncoderBrightnessColor());
#endif
2023-01-06 09:24:29 +01:00
#ifdef RGB_ROTARY_ENCODER
usermods.add(new RgbRotaryEncoderUsermod());
#endif
2023-01-06 09:24:29 +01:00
2021-08-28 21:59:52 +02:00
#ifdef USERMOD_ST7789_DISPLAY
usermods.add(new St7789DisplayUsermod());
#endif
2023-01-06 09:24:29 +01:00
2021-09-30 05:23:32 +02:00
#ifdef USERMOD_SEVEN_SEGMENT
usermods.add(new SevenSegmentDisplay());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_SSDR
usermods.add(new UsermodSSDR());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_CRONIXIE
usermods.add(new UsermodCronixie());
#endif
2023-01-06 09:24:29 +01:00
#ifdef QUINLED_AN_PENTA
usermods.add(new QuinLEDAnPentaUsermod());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_WIZLIGHTS
usermods.add(new WizLightsUsermod());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_WIREGUARD
usermods.add(new WireguardUsermod());
#endif
#ifdef USERMOD_WORDCLOCK
usermods.add(new WordClockUsermod());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_MY9291
usermods.add(new MY9291Usermod());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_SI7021_MQTT_HA
usermods.add(new Si7021_MQTT_HA());
#endif
#ifdef USERMOD_SMARTNEST
usermods.add(new Smartnest());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_AUDIOREACTIVE
usermods.add(new AudioReactive());
#endif
#ifdef USERMOD_ANALOG_CLOCK
usermods.add(new AnalogClockUsermod());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_PING_PONG_CLOCK
usermods.add(new PingPongClockUsermod());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_ADS1115
usermods.add(new ADS1115Usermod());
#endif
2023-01-01 15:13:57 +01:00
#ifdef USERMOD_KLIPPER_PERCENTAGE
usermods.add(new klipper_percentage());
2023-03-10 14:08:52 +01:00
#endif
#ifdef USERMOD_BOBLIGHT
usermods.add(new BobLightUsermod());
#endif
#ifdef SD_ADAPTER
usermods.add(new UsermodSdCard());
#endif
2023-01-06 09:24:29 +01:00
#ifdef USERMOD_PWM_OUTPUTS
usermods.add(new PwmOutputsUsermod());
#endif
2022-12-11 01:16:14 +01:00
#ifdef USERMOD_SHT
usermods.add(new ShtUsermod());
#endif
#ifdef USERMOD_INTERNAL_TEMPERATURE
usermods.add(new InternalTemperatureUsermod());
#endif
#ifdef USERMOD_HTTP_PULL_LIGHT_CONTROL
usermods.add(new HttpPullLightControl());
#endif
}