mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 00:36:36 +00:00
Convert usermods from header to library
This commit is contained in:
parent
71b0e8e937
commit
90b18158fc
@ -254,3 +254,7 @@ public:
|
||||
return USERMOD_ID_ANALOG_CLOCK;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
static AnalogClockUsermod analog_clock;
|
||||
REGISTER_USERMOD(analog_clock);
|
9
usermods/Analog_Clock/library.json
Normal file
9
usermods/Analog_Clock/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "Analog_Clock",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -562,3 +562,7 @@ const char Animated_Staircase::_bottomEcho_pin[] PROGMEM = "bottomEch
|
||||
const char Animated_Staircase::_topEchoCm[] PROGMEM = "top-dist-cm";
|
||||
const char Animated_Staircase::_bottomEchoCm[] PROGMEM = "bottom-dist-cm";
|
||||
const char Animated_Staircase::_togglePower[] PROGMEM = "toggle-on-off";
|
||||
|
||||
|
||||
static Animated_Staircase animated_staircase;
|
||||
REGISTER_USERMOD(animated_staircase);
|
9
usermods/Animated_Staircase/library.json
Normal file
9
usermods/Animated_Staircase/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "Animated_Staircase",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -857,3 +857,7 @@ const char UsermodBattery::_preset[] PROGMEM = "preset";
|
||||
const char UsermodBattery::_duration[] PROGMEM = "duration";
|
||||
const char UsermodBattery::_init[] PROGMEM = "init";
|
||||
const char UsermodBattery::_haDiscovery[] PROGMEM = "HA-discovery";
|
||||
|
||||
|
||||
static UsermodBattery battery;
|
||||
REGISTER_USERMOD(battery);
|
9
usermods/Battery/library.json
Normal file
9
usermods/Battery/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "Battery",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -299,4 +299,7 @@ class UsermodCronixie : public Usermod {
|
||||
{
|
||||
return USERMOD_ID_CRONIXIE;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
static UsermodCronixie cronixie;
|
||||
REGISTER_USERMOD(cronixie);
|
9
usermods/Cronixie/library.json
Normal file
9
usermods/Cronixie/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "Cronixie",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -245,3 +245,7 @@ class UsermodDHT : public Usermod {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
static UsermodDHT dht;
|
||||
REGISTER_USERMOD(dht);
|
9
usermods/DHT/library.json
Normal file
9
usermods/DHT/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "DHT",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -156,3 +156,7 @@ class ElekstubeIPSUsermod : public Usermod {
|
||||
const char ElekstubeIPSUsermod::_name[] PROGMEM = "EleksTubeIPS";
|
||||
const char ElekstubeIPSUsermod::_tubeSeg[] PROGMEM = "tubeSegment";
|
||||
const char ElekstubeIPSUsermod::_digitOffset[] PROGMEM = "digitOffset";
|
||||
|
||||
|
||||
static ElekstubeIPSUsermod elekstube_ips;
|
||||
REGISTER_USERMOD(elekstube_ips);
|
9
usermods/EleksTube_IPS/library.json
Normal file
9
usermods/EleksTube_IPS/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "EleksTube_IPS",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -151,3 +151,7 @@ class LDR_Dusk_Dawn_v2 : public Usermod {
|
||||
};
|
||||
|
||||
const char LDR_Dusk_Dawn_v2::_name[] PROGMEM = "LDR_Dusk_Dawn_v2";
|
||||
|
||||
|
||||
static LDR_Dusk_Dawn_v2 ldr_dusk_dawn_v2;
|
||||
REGISTER_USERMOD(ldr_dusk_dawn_v2);
|
9
usermods/LDR_Dusk_Dawn_v2/library.json
Normal file
9
usermods/LDR_Dusk_Dawn_v2/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "LDR_Dusk_Dawn_v2",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -571,3 +571,7 @@ bool PIRsensorSwitch::readFromConfig(JsonObject &root)
|
||||
// use "return !top["newestParameter"].isNull();" when updating Usermod with new features
|
||||
return !(pins.isNull() || pins.size() != PIR_SENSOR_MAX_SENSORS);
|
||||
}
|
||||
|
||||
|
||||
static PIRsensorSwitch pir_sensor_switch;
|
||||
REGISTER_USERMOD(pir_sensor_switch);
|
9
usermods/PIR_sensor_switch/library.json
Normal file
9
usermods/PIR_sensor_switch/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "PIR_sensor_switch",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -397,3 +397,7 @@ const char PWMFanUsermod::_maxPWMValuePct[] PROGMEM = "max-PWM-percent";
|
||||
const char PWMFanUsermod::_IRQperRotation[] PROGMEM = "IRQs-per-rotation";
|
||||
const char PWMFanUsermod::_speed[] PROGMEM = "speed";
|
||||
const char PWMFanUsermod::_lock[] PROGMEM = "lock";
|
||||
|
||||
|
||||
static PWMFanUsermod pwm_fan;
|
||||
REGISTER_USERMOD(pwm_fan);
|
9
usermods/PWM_fan/library.json
Normal file
9
usermods/PWM_fan/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "PWM_fan",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -48,4 +48,7 @@ class RTCUsermod : public Usermod {
|
||||
{
|
||||
return USERMOD_ID_RTC;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
static RTCUsermod rtc;
|
||||
REGISTER_USERMOD(rtc);
|
9
usermods/RTC/library.json
Normal file
9
usermods/RTC/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "RTC",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -210,3 +210,7 @@ const char Usermod_SN_Photoresistor::_referenceVoltage[] PROGMEM = "supplied-vol
|
||||
const char Usermod_SN_Photoresistor::_resistorValue[] PROGMEM = "resistor-value";
|
||||
const char Usermod_SN_Photoresistor::_adcPrecision[] PROGMEM = "adc-precision";
|
||||
const char Usermod_SN_Photoresistor::_offset[] PROGMEM = "offset";
|
||||
|
||||
|
||||
static Usermod_SN_Photoresistor sn_photoresistor;
|
||||
REGISTER_USERMOD(sn_photoresistor);
|
9
usermods/SN_Photoresistor/library.json
Normal file
9
usermods/SN_Photoresistor/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "SN_Photoresistor",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -410,4 +410,7 @@ class St7789DisplayUsermod : public Usermod {
|
||||
|
||||
//More methods can be added in the future, this example will then be extended.
|
||||
//Your usermod will remain compatible as it does not need to implement all methods from the Usermod base class!
|
||||
};
|
||||
};
|
||||
|
||||
static name. st7789_display;
|
||||
REGISTER_USERMOD(st7789_display);
|
9
usermods/ST7789_display/library.json
Normal file
9
usermods/ST7789_display/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "ST7789_display",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -229,3 +229,7 @@ const char Si7021_MQTT_HA::_name[] PROGMEM = "Si7021 MQTT (Hom
|
||||
const char Si7021_MQTT_HA::_enabled[] PROGMEM = "enabled";
|
||||
const char Si7021_MQTT_HA::_sendAdditionalSensors[] PROGMEM = "Send Dew Point, Abs. Humidity and Heat Index";
|
||||
const char Si7021_MQTT_HA::_haAutoDiscovery[] PROGMEM = "Home Assistant MQTT Auto-Discovery";
|
||||
|
||||
|
||||
static Si7021_MQTT_HA si7021_mqtt_ha;
|
||||
REGISTER_USERMOD(si7021_mqtt_ha);
|
9
usermods/Si7021_MQTT_HA/library.json
Normal file
9
usermods/Si7021_MQTT_HA/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "Si7021_MQTT_HA",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -471,3 +471,7 @@ static uint16_t mode_temperature() {
|
||||
SEGMENT.fill(SEGMENT.color_from_palette(i, false, false, 255));
|
||||
return FRAMETIME;
|
||||
}
|
||||
|
||||
|
||||
static UsermodTemperature temperature;
|
||||
REGISTER_USERMOD(temperature);
|
9
usermods/Temperature/library.json
Normal file
9
usermods/Temperature/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "Temperature",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -126,4 +126,7 @@ class UsermodVL53L0XGestures : public Usermod {
|
||||
{
|
||||
return USERMOD_ID_VL53L0X;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
static UsermodVL53L0XGestures vl53l0x_gestures;
|
||||
REGISTER_USERMOD(vl53l0x_gestures);
|
9
usermods/VL53L0X_gestures/library.json
Normal file
9
usermods/VL53L0X_gestures/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "VL53L0X_gestures",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -457,3 +457,7 @@ void BobLightUsermod::pollBob() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static BobLightUsermod boblight;
|
||||
REGISTER_USERMOD(boblight);
|
9
usermods/boblight/library.json
Normal file
9
usermods/boblight/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "boblight",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -78,4 +78,7 @@ class BuzzerUsermod : public Usermod {
|
||||
{
|
||||
return USERMOD_ID_BUZZER;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
static BuzzerUsermod buzzer;
|
||||
REGISTER_USERMOD(buzzer);
|
9
usermods/buzzer/library.json
Normal file
9
usermods/buzzer/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "buzzer",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -224,4 +224,7 @@ void addToConfig(JsonObject& root) override
|
||||
|
||||
// add more strings here to reduce flash memory usage
|
||||
const char DeepSleepUsermod::_name[] PROGMEM = "DeepSleep";
|
||||
const char DeepSleepUsermod::_enabled[] PROGMEM = "enabled";
|
||||
const char DeepSleepUsermod::_enabled[] PROGMEM = "enabled";
|
||||
|
||||
static DeepSleepUsermod deep_sleep;
|
||||
REGISTER_USERMOD(deep_sleep);
|
9
usermods/deep_sleep/library.json
Normal file
9
usermods/deep_sleep/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "deep_sleep",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
9
usermods/mpu6050_imu/library.json
Normal file
9
usermods/mpu6050_imu/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "mpu6050_imu",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -446,3 +446,7 @@ const char MPU6050Driver::_z_acc_bias[] PROGMEM = "z_acc_bias";
|
||||
const char MPU6050Driver::_x_gyro_bias[] PROGMEM = "x_gyro_bias";
|
||||
const char MPU6050Driver::_y_gyro_bias[] PROGMEM = "y_gyro_bias";
|
||||
const char MPU6050Driver::_z_gyro_bias[] PROGMEM = "z_gyro_bias";
|
||||
|
||||
|
||||
static MPU6050Driver mpu6050_imu;
|
||||
REGISTER_USERMOD(mpu6050_imu);
|
9
usermods/multi_relay/library.json
Normal file
9
usermods/multi_relay/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "multi_relay",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -842,3 +842,7 @@ const char MultiRelay::_pcfAddress[] PROGMEM = "PCF8574-address";
|
||||
const char MultiRelay::_switch[] PROGMEM = "switch";
|
||||
const char MultiRelay::_toggle[] PROGMEM = "toggle";
|
||||
const char MultiRelay::_Command[] PROGMEM = "/command";
|
||||
|
||||
|
||||
static MultiRelay multi_relay;
|
||||
REGISTER_USERMOD(multi_relay);
|
9
usermods/pixels_dice_tray/library.json
Normal file
9
usermods/pixels_dice_tray/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "pixels_dice_tray",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -533,3 +533,7 @@ class PixelsDiceTrayUsermod : public Usermod {
|
||||
// extended. Your usermod will remain compatible as it does not need to
|
||||
// implement all methods from the Usermod base class!
|
||||
};
|
||||
|
||||
|
||||
static PixelsDiceTrayUsermod pixels_dice_tray;
|
||||
REGISTER_USERMOD(pixels_dice_tray);
|
9
usermods/pov_display/library.json
Normal file
9
usermods/pov_display/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "pov_display",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -83,3 +83,7 @@ class PovDisplayUsermod : public Usermod
|
||||
|
||||
void connected() {}
|
||||
};
|
||||
|
||||
|
||||
static PovDisplayUsermod pov_display;
|
||||
REGISTER_USERMOD(pov_display);
|
9
usermods/pwm_outputs/library.json
Normal file
9
usermods/pwm_outputs/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "pwm_outputs",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -219,3 +219,7 @@ class PwmOutputsUsermod : public Usermod {
|
||||
|
||||
const char PwmOutputsUsermod::USERMOD_NAME[] PROGMEM = "PwmOutputs";
|
||||
const char PwmOutputsUsermod::PWM_STATE_NAME[] PROGMEM = "pwm";
|
||||
|
||||
|
||||
static PwmOutputsUsermod pwm_outputs;
|
||||
REGISTER_USERMOD(pwm_outputs);
|
9
usermods/quinled-an-penta/library.json
Normal file
9
usermods/quinled-an-penta/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "quinled-an-penta",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -752,4 +752,7 @@ const unsigned char QuinLEDAnPentaUsermod::quinLedLogo[] PROGMEM = {
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
|
||||
};
|
||||
};
|
||||
|
||||
static QuinLEDAnPentaUsermod quinled-an-penta;
|
||||
REGISTER_USERMOD(quinled-an-penta);
|
9
usermods/rgb-rotary-encoder/library.json
Normal file
9
usermods/rgb-rotary-encoder/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "rgb-rotary-encoder",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -340,4 +340,7 @@ const char RgbRotaryEncoderUsermod::_ebIo[] PROGMEM = "eb-pin";
|
||||
const char RgbRotaryEncoderUsermod::_ledMode[] PROGMEM = "LED-Mode";
|
||||
const char RgbRotaryEncoderUsermod::_ledBrightness[] PROGMEM = "LED-Brightness";
|
||||
const char RgbRotaryEncoderUsermod::_stepsPerClick[] PROGMEM = "Steps-per-Click";
|
||||
const char RgbRotaryEncoderUsermod::_incrementPerClick[] PROGMEM = "Increment-per-Click";
|
||||
const char RgbRotaryEncoderUsermod::_incrementPerClick[] PROGMEM = "Increment-per-Click";
|
||||
|
||||
static RgbRotaryEncoderUsermod rgb-rotary-encoder;
|
||||
REGISTER_USERMOD(rgb-rotary-encoder);
|
9
usermods/sd_card/library.json
Normal file
9
usermods/sd_card/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "sd_card",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -240,4 +240,7 @@ void listDir( const char * dirname, uint8_t levels){
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static UsermodSdCard sd_card;
|
||||
REGISTER_USERMOD(sd_card);
|
9
usermods/seven_segment_display/library.json
Normal file
9
usermods/seven_segment_display/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "seven_segment_display",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -498,4 +498,7 @@ const char SevenSegmentDisplay::_str_timeEnabled[] PROGMEM = "timeEnabled";
|
||||
const char SevenSegmentDisplay::_str_scrollSpd[] PROGMEM = "scrollSpd";
|
||||
const char SevenSegmentDisplay::_str_displayMask[] PROGMEM = "displayMask";
|
||||
const char SevenSegmentDisplay::_str_displayMsg[] PROGMEM = "displayMsg";
|
||||
const char SevenSegmentDisplay::_str_sevenSeg[] PROGMEM = "sevenSeg";
|
||||
const char SevenSegmentDisplay::_str_sevenSeg[] PROGMEM = "sevenSeg";
|
||||
|
||||
static SevenSegmentDisplay seven_segment_display;
|
||||
REGISTER_USERMOD(seven_segment_display);
|
9
usermods/sht/library.json
Normal file
9
usermods/sht/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "sht",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -477,4 +477,7 @@ float ShtUsermod::getTemperature() {
|
||||
*/
|
||||
const char* ShtUsermod::getUnitString() {
|
||||
return unitOfTemp ? "°F" : "°C";
|
||||
}
|
||||
}
|
||||
|
||||
static ShtUsermod sht;
|
||||
REGISTER_USERMOD(sht);
|
9
usermods/smartnest/library.json
Normal file
9
usermods/smartnest/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "smartnest",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -203,3 +203,7 @@ public:
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
static Smartnest smartnest;
|
||||
REGISTER_USERMOD(smartnest);
|
9
usermods/usermod_rotary_brightness_color/library.json
Normal file
9
usermods/usermod_rotary_brightness_color/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "usermod_rotary_brightness_color",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -187,3 +187,7 @@ public:
|
||||
return configComplete;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
static RotaryEncoderBrightnessColor usermod_rotary_brightness_color;
|
||||
REGISTER_USERMOD(usermod_rotary_brightness_color);
|
9
usermods/usermod_v2_HttpPullLightControl/library.json
Normal file
9
usermods/usermod_v2_HttpPullLightControl/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "usermod_v2_HttpPullLightControl",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
9
usermods/usermod_v2_four_line_display_ALT/library.json
Normal file
9
usermods/usermod_v2_four_line_display_ALT/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "usermod_v2_four_line_display_ALT",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -1386,3 +1386,7 @@ bool FourLineDisplayUsermod::readFromConfig(JsonObject& root) {
|
||||
// use "return !top["newestParameter"].isNull();" when updating Usermod with new features
|
||||
return !top[FPSTR(_contrastFix)].isNull();
|
||||
}
|
||||
|
||||
|
||||
static FourLineDisplayUsermod usermod_v2_four_line_display_alt;
|
||||
REGISTER_USERMOD(usermod_v2_four_line_display_alt);
|
9
usermods/usermod_v2_klipper_percentage/library.json
Normal file
9
usermods/usermod_v2_klipper_percentage/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "usermod_v2_klipper_percentage",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -219,4 +219,7 @@ public:
|
||||
}
|
||||
};
|
||||
const char klipper_percentage::_name[] PROGMEM = "Klipper_Percentage";
|
||||
const char klipper_percentage::_enabled[] PROGMEM = "enabled";
|
||||
const char klipper_percentage::_enabled[] PROGMEM = "enabled";
|
||||
|
||||
static klipper_percentage usermod_v2_klipper_percentage;
|
||||
REGISTER_USERMOD(usermod_v2_klipper_percentage);
|
9
usermods/usermod_v2_ping_pong_clock/library.json
Normal file
9
usermods/usermod_v2_ping_pong_clock/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "usermod_v2_ping_pong_clock",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -117,3 +117,7 @@ public:
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
static PingPongClockUsermod usermod_v2_ping_pong_clock;
|
||||
REGISTER_USERMOD(usermod_v2_ping_pong_clock);
|
9
usermods/usermod_v2_rotary_encoder_ui_ALT/library.json
Normal file
9
usermods/usermod_v2_rotary_encoder_ui_ALT/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "usermod_v2_rotary_encoder_ui_ALT",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -1175,3 +1175,7 @@ const char RotaryEncoderUIUsermod::_applyToAll[] PROGMEM = "apply-2-all-seg";
|
||||
const char RotaryEncoderUIUsermod::_pcf8574[] PROGMEM = "use-PCF8574";
|
||||
const char RotaryEncoderUIUsermod::_pcfAddress[] PROGMEM = "PCF8574-address";
|
||||
const char RotaryEncoderUIUsermod::_pcfINTpin[] PROGMEM = "PCF8574-INT-pin";
|
||||
|
||||
|
||||
static RotaryEncoderUIUsermod usermod_v2_rotary_encoder_ui_alt;
|
||||
REGISTER_USERMOD(usermod_v2_rotary_encoder_ui_alt);
|
9
usermods/usermod_v2_word_clock/library.json
Normal file
9
usermods/usermod_v2_word_clock/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "usermod_v2_word_clock",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -504,4 +504,7 @@ class WordClockUsermod : public Usermod
|
||||
|
||||
//More methods can be added in the future, this example will then be extended.
|
||||
//Your usermod will remain compatible as it does not need to implement all methods from the Usermod base class!
|
||||
};
|
||||
};
|
||||
|
||||
static WordClockUsermod usermod_v2_word_clock;
|
||||
REGISTER_USERMOD(usermod_v2_word_clock);
|
9
usermods/wireguard/library.json
Normal file
9
usermods/wireguard/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "wireguard",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -124,4 +124,7 @@ class WireguardUsermod : public Usermod {
|
||||
int endpoint_port = 0;
|
||||
bool is_enabled = false;
|
||||
unsigned long lastTime = 0;
|
||||
};
|
||||
};
|
||||
|
||||
static WireguardUsermod wireguard;
|
||||
REGISTER_USERMOD(wireguard);
|
9
usermods/wizlights/library.json
Normal file
9
usermods/wizlights/library.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name:": "wizlights",
|
||||
"build": {
|
||||
"srcDir": ".",
|
||||
"includeDir": "../../wled00",
|
||||
"libLDFMode": "chain+",
|
||||
"libArchive": false
|
||||
}
|
||||
}
|
@ -156,3 +156,7 @@ class WizLightsUsermod : public Usermod {
|
||||
|
||||
uint16_t getId(){return USERMOD_ID_WIZLIGHTS;}
|
||||
};
|
||||
|
||||
|
||||
static WizLightsUsermod wizlights;
|
||||
REGISTER_USERMOD(wizlights);
|
Loading…
x
Reference in New Issue
Block a user