From 8b0b5bc52656f34a86a7b12810b5e03c3af0b01a Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sat, 25 May 2024 12:12:20 -0500 Subject: [PATCH] Update LED strip controller files to new standardized header comment --- .../LEDStripController/LEDStripController.cpp | 14 +++++++++----- .../LEDStripController/LEDStripController.h | 17 +++++++++-------- .../LEDStripControllerDetect.cpp | 17 ++++++++++++++--- .../RGBController_LEDStrip.cpp | 18 ++++++++++-------- .../RGBController_LEDStrip.h | 19 +++++++++++-------- 5 files changed, 53 insertions(+), 32 deletions(-) diff --git a/Controllers/LEDStripController/LEDStripController.cpp b/Controllers/LEDStripController/LEDStripController.cpp index 9b163ebb3..fa355ebbb 100644 --- a/Controllers/LEDStripController/LEDStripController.cpp +++ b/Controllers/LEDStripController/LEDStripController.cpp @@ -1,15 +1,19 @@ /*---------------------------------------------------------*\ -| Processing Code for Generic LED Strip Interface | +| LEDStripController.cpp | | | -| Adam Honse (calcprogrammer1@gmail.com), 12/11/2016 | +| Driver for serial LED strips | +| | +| Adam Honse (calcprogrammer1@gmail.com) 11 Dec 2016 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | \*---------------------------------------------------------*/ -#include "LEDStripController.h" -#include "ResourceManager.h" - #include #include #include +#include "LEDStripController.h" +#include "ResourceManager.h" LEDStripController::LEDStripController() { diff --git a/Controllers/LEDStripController/LEDStripController.h b/Controllers/LEDStripController/LEDStripController.h index aae68e0ef..2dff03830 100644 --- a/Controllers/LEDStripController/LEDStripController.h +++ b/Controllers/LEDStripController/LEDStripController.h @@ -1,18 +1,21 @@ /*---------------------------------------------------------*\ -| Definitions for Generic LED Strip Interface | +| LEDStripController.h | | | -| Adam Honse (calcprogrammer1@gmail.com), 12/11/2016 | +| Driver for serial LED strips | +| | +| Adam Honse (calcprogrammer1@gmail.com) Dec 11 2016 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | \*---------------------------------------------------------*/ -#ifndef LED_STRIP_H -#define LED_STRIP_H +#pragma once +#include #include "RGBController.h" #include "i2c_smbus.h" #include "serial_port.h" #include "net_port.h" -#include - #ifndef TRUE #define TRUE true @@ -79,5 +82,3 @@ private: unsigned char i2c_addr; led_protocol protocol; }; - -#endif diff --git a/Controllers/LEDStripController/LEDStripControllerDetect.cpp b/Controllers/LEDStripController/LEDStripControllerDetect.cpp index 3ecd35271..ab0ab9123 100644 --- a/Controllers/LEDStripController/LEDStripControllerDetect.cpp +++ b/Controllers/LEDStripController/LEDStripControllerDetect.cpp @@ -1,11 +1,22 @@ +/*---------------------------------------------------------*\ +| LEDStripControllerDetect.cpp | +| | +| Detector for serial LED strips | +| | +| Adam Honse (calcprogrammer1@gmail.com) 11 Dec 2016 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#include +#include +#include #include "Detector.h" #include "LEDStripController.h" #include "RGBController.h" #include "RGBController_LEDStrip.h" #include "SettingsManager.h" -#include -#include -#include /******************************************************************************************\ * * diff --git a/Controllers/LEDStripController/RGBController_LEDStrip.cpp b/Controllers/LEDStripController/RGBController_LEDStrip.cpp index e3301ba2a..31d7219b4 100644 --- a/Controllers/LEDStripController/RGBController_LEDStrip.cpp +++ b/Controllers/LEDStripController/RGBController_LEDStrip.cpp @@ -1,11 +1,13 @@ -/*-----------------------------------------*\ -| RGBController_LEDStrip.cpp | -| | -| Generic RGB Interface for OpenAuraSDK | -| KeyboardVisualizer LED strip interface | -| | -| Adam Honse (CalcProgrammer1) 6/20/2019 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_LEDStrip.cpp | +| | +| RGBController for serial LED strips | +| | +| Adam Honse (calcprogrammer1@gmail.com) 20 Jun 2019 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include "RGBController_LEDStrip.h" diff --git a/Controllers/LEDStripController/RGBController_LEDStrip.h b/Controllers/LEDStripController/RGBController_LEDStrip.h index 31bebfba0..dcdcd2961 100644 --- a/Controllers/LEDStripController/RGBController_LEDStrip.h +++ b/Controllers/LEDStripController/RGBController_LEDStrip.h @@ -1,13 +1,16 @@ -/*-----------------------------------------*\ -| RGBController_LEDStrip.h | -| | -| Generic RGB Interface for OpenAuraSDK | -| KeyboardVisualizer LED strip interface | -| | -| Adam Honse (CalcProgrammer1) 6/20/2019 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| RGBController_LEDStrip.h | +| | +| RGBController for serial LED strips | +| | +| Adam Honse (calcprogrammer1@gmail.com) 20 Jun 2019 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once + #include "RGBController.h" #include "serial_port.h" #include "LEDStripController.h"