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)
|
|
|
|
* || || ||
|
|
|
|
* \/ \/ \/
|
|
|
|
*/
|
|
|
|
//#include "usermod_v2_example.h"
|
2020-09-13 19:26:27 +02:00
|
|
|
#ifdef USERMOD_DALLASTEMPERATURE
|
|
|
|
#include "../usermods/Temperature/usermod_temperature.h"
|
|
|
|
#endif
|
2020-12-26 14:23:14 +01:00
|
|
|
|
2021-06-02 02:01:06 +02:00
|
|
|
#ifdef USERMOD_SN_PHOTORESISTOR
|
|
|
|
#include "../usermods/SN_Photoresistor/usermod_sn_photoresistor.h"
|
|
|
|
#endif
|
|
|
|
|
2020-05-28 02:20:02 +02:00
|
|
|
//#include "usermod_v2_empty.h"
|
2020-12-26 14:23:14 +01:00
|
|
|
|
2020-12-14 05:43:28 +01:00
|
|
|
#ifdef USERMOD_BUZZER
|
|
|
|
#include "../usermods/buzzer/usermod_v2_buzzer.h"
|
|
|
|
#endif
|
2020-12-29 19:35:59 +01:00
|
|
|
#ifdef USERMOD_SENSORSTOMQTT
|
2021-05-07 12:41:39 +02:00
|
|
|
#include "../usermods/sensors_to_mqtt/usermod_v2_SensorsToMqtt.h"
|
|
|
|
#endif
|
|
|
|
#ifdef USERMOD_PIRSWITCH
|
|
|
|
#include "../usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h"
|
2020-12-29 19:35:59 +01:00
|
|
|
#endif
|
2020-05-28 02:20:02 +02:00
|
|
|
|
2021-02-18 00:28:01 +01:00
|
|
|
#ifdef USERMOD_MODE_SORT
|
|
|
|
#include "../usermods/usermod_v2_mode_sort/usermod_v2_mode_sort.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"
|
|
|
|
#endif
|
2021-05-07 12:41:39 +02:00
|
|
|
#ifdef USERMOD_FOUR_LINE_DISPLAY
|
2021-02-09 17:15:43 +01:00
|
|
|
#include "../usermods/usermod_v2_four_line_display/usermod_v2_four_line_display.h"
|
|
|
|
#endif
|
|
|
|
#ifdef USERMOD_ROTARY_ENCODER_UI
|
|
|
|
#include "../usermods/usermod_v2_rotary_encoder_ui/usermod_v2_rotary_encoder_ui.h"
|
|
|
|
#endif
|
|
|
|
#ifdef USERMOD_AUTO_SAVE
|
|
|
|
#include "../usermods/usermod_v2_auto_save/usermod_v2_auto_save.h"
|
|
|
|
#endif
|
|
|
|
|
2021-02-13 01:21:13 +01:00
|
|
|
#ifdef USERMOD_DHT
|
|
|
|
#include "../usermods/DHT/usermod_dht.h"
|
|
|
|
#endif
|
|
|
|
|
2021-04-02 18:04:10 +02:00
|
|
|
#ifdef USERMOD_VL53L0X_GESTURES
|
|
|
|
#include <Wire.h> //it's needed here to correctly resolve dependencies
|
|
|
|
#include "../usermods/VL53L0X_gestures/usermod_vl53l0x_gestures.h"
|
|
|
|
#endif
|
|
|
|
|
2021-05-07 12:41:39 +02:00
|
|
|
#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
|
|
|
|
|
2021-05-21 10:10:29 +02:00
|
|
|
#ifdef USERMOD_RTC
|
|
|
|
#include "../usermods/RTC/usermod_rtc.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USERMOD_ELEKSTUBE_IPS
|
|
|
|
#include "../usermods/EleksTube_IPS/usermod_elekstube_ips.h"
|
|
|
|
#endif
|
|
|
|
|
2020-05-28 02:20:02 +02:00
|
|
|
void registerUsermods()
|
|
|
|
{
|
2020-12-29 19:35:59 +01:00
|
|
|
/*
|
2020-05-28 02:20:02 +02:00
|
|
|
* Add your usermod class name here
|
|
|
|
* || || ||
|
|
|
|
* \/ \/ \/
|
|
|
|
*/
|
|
|
|
//usermods.add(new MyExampleUsermod());
|
2021-06-02 02:01:06 +02:00
|
|
|
|
2020-09-13 19:26:27 +02:00
|
|
|
#ifdef USERMOD_DALLASTEMPERATURE
|
|
|
|
usermods.add(new UsermodTemperature());
|
|
|
|
#endif
|
2021-06-02 02:01:06 +02:00
|
|
|
|
|
|
|
#ifdef USERMOD_SN_PHOTORESISTOR
|
|
|
|
usermods.add(new Usermod_SN_Photoresistor());
|
|
|
|
#endif
|
|
|
|
|
2020-05-28 02:20:02 +02:00
|
|
|
//usermods.add(new UsermodRenameMe());
|
2021-06-02 02:01:06 +02:00
|
|
|
|
2020-12-14 05:43:28 +01:00
|
|
|
#ifdef USERMOD_BUZZER
|
|
|
|
usermods.add(new BuzzerUsermod());
|
|
|
|
#endif
|
2021-06-02 02:01:06 +02:00
|
|
|
|
2020-12-25 21:17:30 +01:00
|
|
|
#ifdef USERMOD_BME280
|
|
|
|
usermods.add(new UsermodBME280());
|
|
|
|
#endif
|
2021-05-07 12:41:39 +02:00
|
|
|
#ifdef USERMOD_SENSORSTOMQTT
|
2020-12-29 19:35:59 +01:00
|
|
|
usermods.add(new UserMod_SensorsToMQTT());
|
2021-05-07 12:41:39 +02:00
|
|
|
#endif
|
|
|
|
#ifdef USERMOD_PIRSWITCH
|
|
|
|
usermods.add(new PIRsensorSwitch());
|
|
|
|
#endif
|
2021-02-18 00:28:01 +01:00
|
|
|
|
2021-05-07 12:41:39 +02:00
|
|
|
#ifdef USERMOD_MODE_SORT
|
2021-02-18 00:28:01 +01:00
|
|
|
usermods.add(new ModeSortUsermod());
|
2021-05-07 12:41:39 +02:00
|
|
|
#endif
|
|
|
|
#ifdef USERMOD_FOUR_LINE_DISPLAY
|
2021-02-09 17:15:43 +01:00
|
|
|
usermods.add(new FourLineDisplayUsermod());
|
2021-05-07 12:41:39 +02:00
|
|
|
#endif
|
|
|
|
#ifdef USERMOD_ROTARY_ENCODER_UI
|
|
|
|
usermods.add(new RotaryEncoderUIUsermod()); // can use USERMOD_FOUR_LINE_DISPLAY
|
|
|
|
#endif
|
|
|
|
#ifdef USERMOD_AUTO_SAVE
|
|
|
|
usermods.add(new AutoSaveUsermod()); // can use USERMOD_FOUR_LINE_DISPLAY
|
|
|
|
#endif
|
2021-02-18 00:28:01 +01:00
|
|
|
|
2021-05-07 12:41:39 +02:00
|
|
|
#ifdef USERMOD_DHT
|
|
|
|
usermods.add(new UsermodDHT());
|
|
|
|
#endif
|
2021-04-02 18:04:10 +02:00
|
|
|
|
2021-05-07 12:41:39 +02:00
|
|
|
#ifdef USERMOD_VL53L0X_GESTURES
|
2021-04-02 18:04:10 +02:00
|
|
|
usermods.add(new UsermodVL53L0XGestures());
|
2021-05-07 12:41:39 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USERMOD_ANIMATED_STAIRCASE
|
|
|
|
usermods.add(new Animated_Staircase());
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USERMOD_MULTI_RELAY
|
|
|
|
usermods.add(new MultiRelay());
|
|
|
|
#endif
|
2021-05-21 10:10:29 +02:00
|
|
|
|
|
|
|
#ifdef USERMOD_RTC
|
|
|
|
usermods.add(new RTCUsermod());
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USERMOD_ELEKSTUBE_IPS
|
|
|
|
usermods.add(new ElekstubeIPSUsermod());
|
|
|
|
#endif
|
2021-05-07 12:41:39 +02:00
|
|
|
}
|