2020-05-28 00:20:02 +00: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 17:26:27 +00:00
|
|
|
#ifdef USERMOD_DALLASTEMPERATURE
|
|
|
|
#include "../usermods/Temperature/usermod_temperature.h"
|
|
|
|
#endif
|
2020-12-26 13:23:14 +00:00
|
|
|
|
2020-05-28 00:20:02 +00:00
|
|
|
//#include "usermod_v2_empty.h"
|
2020-12-26 13:23:14 +00:00
|
|
|
|
2020-12-14 04:43:28 +00:00
|
|
|
#ifdef USERMOD_BUZZER
|
|
|
|
#include "../usermods/buzzer/usermod_v2_buzzer.h"
|
|
|
|
#endif
|
2020-12-29 18:35:59 +00:00
|
|
|
#ifdef USERMOD_SENSORSTOMQTT
|
|
|
|
#include "usermod_v2_SensorsToMqtt.h"
|
|
|
|
#endif
|
2020-05-28 00:20:02 +00:00
|
|
|
|
2021-02-17 23:28:01 +00:00
|
|
|
#ifdef USERMOD_MODE_SORT
|
|
|
|
#include "../usermods/usermod_v2_mode_sort/usermod_v2_mode_sort.h"
|
|
|
|
#endif
|
2021-02-13 00:43:16 +00:00
|
|
|
|
2020-12-25 20:17:30 +00:00
|
|
|
// BME280 v2 usermod. Define "USERMOD_BME280" in my_config.h
|
|
|
|
#ifdef USERMOD_BME280
|
|
|
|
#include "../usermods/BME280_v2/usermod_bme280.h"
|
|
|
|
#endif
|
2021-02-09 16:15:43 +00:00
|
|
|
#ifdef USERMOD_FOUR_LINE_DISLAY
|
|
|
|
#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 00:21:13 +00:00
|
|
|
#ifdef USERMOD_DHT
|
|
|
|
#include "../usermods/DHT/usermod_dht.h"
|
|
|
|
#endif
|
|
|
|
|
2020-05-28 00:20:02 +00:00
|
|
|
void registerUsermods()
|
|
|
|
{
|
2020-12-29 18:35:59 +00:00
|
|
|
/*
|
2020-05-28 00:20:02 +00:00
|
|
|
* Add your usermod class name here
|
|
|
|
* || || ||
|
|
|
|
* \/ \/ \/
|
|
|
|
*/
|
|
|
|
//usermods.add(new MyExampleUsermod());
|
2020-12-26 13:23:14 +00:00
|
|
|
|
2020-09-13 17:26:27 +00:00
|
|
|
#ifdef USERMOD_DALLASTEMPERATURE
|
|
|
|
usermods.add(new UsermodTemperature());
|
|
|
|
#endif
|
2020-12-26 13:23:14 +00:00
|
|
|
|
2020-05-28 00:20:02 +00:00
|
|
|
//usermods.add(new UsermodRenameMe());
|
2020-12-26 13:23:14 +00:00
|
|
|
|
2020-12-14 04:43:28 +00:00
|
|
|
#ifdef USERMOD_BUZZER
|
|
|
|
usermods.add(new BuzzerUsermod());
|
|
|
|
#endif
|
2020-12-26 13:23:14 +00:00
|
|
|
|
2020-12-25 20:17:30 +00:00
|
|
|
#ifdef USERMOD_BME280
|
|
|
|
usermods.add(new UsermodBME280());
|
|
|
|
#endif
|
2020-12-29 18:35:59 +00:00
|
|
|
#ifdef USERMOD_SENSORSTOMQTT
|
|
|
|
usermods.add(new UserMod_SensorsToMQTT());
|
|
|
|
#endif
|
2021-02-17 23:28:01 +00:00
|
|
|
|
|
|
|
#ifdef USERMOD_MODE_SORT
|
|
|
|
usermods.add(new ModeSortUsermod());
|
|
|
|
#endif
|
2021-02-09 16:15:43 +00:00
|
|
|
#ifdef USERMOD_FOUR_LINE_DISLAY
|
|
|
|
usermods.add(new FourLineDisplayUsermod());
|
|
|
|
#endif
|
|
|
|
#ifdef USERMOD_ROTARY_ENCODER_UI
|
|
|
|
usermods.add(new RotaryEncoderUIUsermod());
|
|
|
|
#endif
|
|
|
|
#ifdef USERMOD_AUTO_SAVE
|
|
|
|
usermods.add(new AutoSaveUsermod());
|
|
|
|
#endif
|
2021-02-17 23:28:01 +00:00
|
|
|
|
2021-02-13 00:21:13 +00:00
|
|
|
#ifdef USERMOD_DHT
|
|
|
|
usermods.add(new UsermodDHT());
|
|
|
|
#endif
|
2021-02-25 08:52:48 +00:00
|
|
|
}
|