usermods: Remove #pragma once from cpps

This commit is contained in:
Will Miles 2025-01-17 00:50:02 +00:00
parent 15edfcd088
commit 193926c795
53 changed files with 3 additions and 102 deletions

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#include <Adafruit_ADS1X15.h>
#include <math.h>

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#include <AHT10.h>

View File

@ -1,4 +1,3 @@
#pragma once
#include "wled.h"
/*

View File

@ -7,7 +7,6 @@
*
* See the accompanying README.md file for more info.
*/
#pragma once
#include "wled.h"
class Animated_Staircase : public Usermod {

View File

@ -5,8 +5,6 @@
#error "This user mod requires MQTT to be enabled."
#endif
#pragma once
#include "wled.h"
#include <BH1750.h>

View File

@ -5,8 +5,6 @@
#error "This user mod requires MQTT to be enabled."
#endif
#pragma once
#include "wled.h"
#include <Arduino.h>
#include <BME280I2C.h> // BME280 sensor

View File

@ -6,7 +6,6 @@
* @date 19 Feb 2024
*/
#pragma once
#warning ********************Included USERMOD_BME68X ********************
#define UMOD_DEVICE "ESP32" // NOTE - Set your hardware here

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#include "battery_defaults.h"
#include "UMBattery.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
class UsermodCronixie : public Usermod {

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#ifndef WLED_ENABLE_MQTT
#error "This user mod requires MQTT to be enabled."

View File

@ -1,4 +1,3 @@
#pragma once
#include "TFTs.h"
#include "wled.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#include <INA226_WE.h>

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
class InternalTemperatureUsermod : public Usermod

View File

@ -4,8 +4,6 @@
#error "This user mod requires MQTT to be enabled."
#endif
#pragma once
#include "wled.h"
#include <ld2410.h>

View File

@ -1,4 +1,3 @@
#pragma once
#include "wled.h"
#ifndef ARDUINO_ARCH_ESP32

View File

@ -1,8 +1,6 @@
// force the compiler to show a warning to confirm that this file is included
#warning **** Included USERMOD_MAX17048 V2.0 ****
#pragma once
#include "wled.h"
#include "Adafruit_MAX1704X.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#include "MY92xx.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#ifndef PIR_SENSOR_PIN
@ -571,7 +569,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;
static PIRsensorSwitch pir_sensor_switch;
REGISTER_USERMOD(pir_sensor_switch);

View File

@ -1,5 +1,3 @@
#pragma once
#if !defined(USERMOD_DALLASTEMPERATURE) && !defined(USERMOD_SHT)
#error The "PWM fan" usermod requires "Dallas Temeprature" or "SHT" usermod to function properly.
#endif

View File

@ -1,5 +1,3 @@
#pragma once
#include "src/dependencies/time/DS1307RTC.h"
#include "wled.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
//Pin defaults for QuinLed Dig-Uno (A0)

View File

@ -1,8 +1,6 @@
// Credits to @mrVanboy, @gwaland and my dearest friend @westward
// Also for @spiff72 for usermod TTGO-T-Display
// 210217
#pragma once
#include "wled.h"
#include <TFT_eSPI.h>
#include <SPI.h>

View File

@ -2,8 +2,6 @@
#error "This user mod requires MQTT to be enabled."
#endif
#pragma once
// this is remixed from usermod_v2_SensorsToMqtt.h (sensors_to_mqtt usermod)
// and usermod_multi_relay.h (multi_relay usermod)

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#include "OneWire.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#include "FX.h"
#include "fcn_declare.h"

View File

@ -13,8 +13,6 @@
* lib_deps = ${env.lib_deps}
* pololu/VL53L0X @ ^1.3.0
*/
#pragma once
#include "wled.h"
#include <Wire.h>

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
/*

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#include "Arduino.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#include "driver/rtc_io.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
/* This driver reads quaternion data from the MPU6060 and adds it to the JSON

View File

@ -1,5 +1,3 @@
#pragma once
#warning "This usermod is deprecated and no longer maintained. It will be removed in a future WLED release. Please use usermod multi_relay which has more features."
#include "wled.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#define COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x])))))

View File

@ -1,5 +1,3 @@
#pragma once
#include <pixels_dice_interface.h> // https://github.com/axlan/arduino-pixels-dice
#include "wled.h"

View File

@ -1,4 +1,3 @@
#pragma once
#include "wled.h"
#include <PNGdec.h>

View File

@ -1,4 +1,3 @@
#pragma once
#include "wled.h"
#ifndef ESP32

View File

@ -1,5 +1,3 @@
#pragma once
#include "U8g2lib.h"
#include "SHT85.h"
#include "Wire.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "ESPRotary.h"
#include <math.h>
#include "wled.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
// SD connected via MMC / SPI

View File

@ -2,8 +2,6 @@
#error "This user mod requires MQTT to be enabled."
#endif
#pragma once
#include "wled.h"
#include <Arduino.h>
#include <Adafruit_Sensor.h>

View File

@ -2,8 +2,6 @@
#error "This user mod requires MQTT to be enabled."
#endif
#pragma once
#include "wled.h"
class SevenSegmentDisplay : public Usermod

View File

@ -2,8 +2,6 @@
#error "This user mod requires MQTT to be enabled."
#endif
#pragma once
#include "wled.h"
class UsermodSSDR : public Usermod {

View File

@ -2,8 +2,6 @@
#error "This user mod requires MQTT to be enabled."
#endif
#pragma once
#include "SHT85.h"
#define USERMOD_SHT_TYPE_SHT30 0

View File

@ -2,8 +2,6 @@
#error "This user mod requires MQTT to be enabled."
#endif
#pragma once
#include "wled.h"
class Smartnest : public Usermod

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
//v2 usermod that allows to change brightness and color using a rotary encoder,

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
// v2 Usermod to automatically save settings

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#undef U8X8_NO_HW_I2C // borrowed from WLEDMM: we do want I2C hardware drivers - if possible
#include <U8x8lib.h> // from https://github.com/olikraus/u8g2/

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
class klipper_percentage : public Usermod

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
class PingPongClockUsermod : public Usermod

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
//

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
/*

View File

@ -1,5 +1,3 @@
#pragma once
#include <WireGuard-ESP32.h>
#include "wled.h"

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
#include <WiFiUdp.h>

View File

@ -1,5 +1,3 @@
#pragma once
#include "wled.h"
/*