From aa4f58694b387fedb93d9f7c93c1d86f4cf6b70f Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Sat, 1 Jun 2024 00:15:51 -0500 Subject: [PATCH] Update MSI Mystic Light 64-byte controller files to new standardized header comment --- .../MSIMysticLight64Controller.cpp | 24 +++++++------ .../MSIMysticLight64Controller.h | 35 ++++++++++--------- .../RGBController_MSIMysticLight64.cpp | 15 +++++++- .../RGBController_MSIMysticLight64.h | 18 ++++++++-- 4 files changed, 62 insertions(+), 30 deletions(-) diff --git a/Controllers/MSIMysticLightController/MSIMysticLight64Controller/MSIMysticLight64Controller.cpp b/Controllers/MSIMysticLightController/MSIMysticLight64Controller/MSIMysticLight64Controller.cpp index 7966aad5..1a790890 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLight64Controller/MSIMysticLight64Controller.cpp +++ b/Controllers/MSIMysticLightController/MSIMysticLight64Controller/MSIMysticLight64Controller.cpp @@ -1,18 +1,20 @@ -/*-----------------------------------------*\ -| MSIMysticLight64Controller.cpp | -| | -| Driver for MSI Mystic Light (64-byte) | -| USB lighting controller | -| | -| T-bond 3/4/2020 | -| Adam Honse 3/6/2021 | -| Elchanan Haas 8/23/2022 | -\*-----------------------------------------*/ +/*---------------------------------------------------------*\ +| MSIMysticLight64Controller.cpp | +| | +| Driver for MSI Mystic Light 64-byte motherboard | +| | +| T-bond 03 Apr 2020 | +| Adam Honse 06 Mar 2021 | +| Elchanan Haas 23 Aug 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "MSIMysticLight64Controller.h" #include #include #include +#include "MSIMysticLight64Controller.h" MSIMysticLight64Controller::MSIMysticLight64Controller ( diff --git a/Controllers/MSIMysticLightController/MSIMysticLight64Controller/MSIMysticLight64Controller.h b/Controllers/MSIMysticLightController/MSIMysticLight64Controller/MSIMysticLight64Controller.h index 527f91b9..ed7cbc39 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLight64Controller/MSIMysticLight64Controller.h +++ b/Controllers/MSIMysticLightController/MSIMysticLight64Controller/MSIMysticLight64Controller.h @@ -1,21 +1,24 @@ -/*-----------------------------------------*\ -| MSIMysticLight64Controller.h | -| | -| Definitions and types for MSI Mystic | -| Light (64-byte) USB lighting controllers | -| | -| T-bond 3/4/2020 | -| Adam Honse 3/6/2021 | -\*-----------------------------------------*/ - -#include "MSIMysticLightCommon.h" -#include "RGBController.h" -#include -#include -#include +/*---------------------------------------------------------*\ +| MSIMysticLight64Controller.h | +| | +| Driver for MSI Mystic Light 64-byte motherboard | +| | +| T-bond 03 Apr 2020 | +| Adam Honse 06 Mar 2021 | +| Elchanan Haas 23 Aug 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #pragma once +#include +#include +#include +#include "MSIMysticLightCommon.h" +#include "RGBController.h" + enum MSI_64_MODE { MSI_64_OFF = 0, @@ -42,7 +45,7 @@ public: MSI_64_MODE mode, MSI_SPEED speed, MSI_BRIGHTNESS brightness, - unsigned int num_colors, + unsigned int num_colors, Color colors[] ); diff --git a/Controllers/MSIMysticLightController/MSIMysticLight64Controller/RGBController_MSIMysticLight64.cpp b/Controllers/MSIMysticLightController/MSIMysticLight64Controller/RGBController_MSIMysticLight64.cpp index c7e04811..565806a9 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLight64Controller/RGBController_MSIMysticLight64.cpp +++ b/Controllers/MSIMysticLightController/MSIMysticLight64Controller/RGBController_MSIMysticLight64.cpp @@ -1,3 +1,16 @@ +/*---------------------------------------------------------*\ +| RGBController_MSIMysticLight64.cpp | +| | +| RGBController for MSI Mystic Light 64-byte motherboard | +| | +| T-bond 03 Apr 2020 | +| Adam Honse 06 Mar 2021 | +| Elchanan Haas 23 Aug 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "RGBController_MSIMysticLight64.h" /**------------------------------------------------------------------*\ @@ -148,4 +161,4 @@ void RGBController_MSIMysticLight64::SetupMode Mode.colors.push_back(0x00FF00FF); } modes.push_back(Mode); -} \ No newline at end of file +} diff --git a/Controllers/MSIMysticLightController/MSIMysticLight64Controller/RGBController_MSIMysticLight64.h b/Controllers/MSIMysticLightController/MSIMysticLight64Controller/RGBController_MSIMysticLight64.h index 75429a4b..a23dc531 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLight64Controller/RGBController_MSIMysticLight64.h +++ b/Controllers/MSIMysticLightController/MSIMysticLight64Controller/RGBController_MSIMysticLight64.h @@ -1,4 +1,18 @@ +/*---------------------------------------------------------*\ +| RGBController_MSIMysticLight64.h | +| | +| RGBController for MSI Mystic Light 64-byte motherboard | +| | +| T-bond 03 Apr 2020 | +| Adam Honse 06 Mar 2021 | +| Elchanan Haas 23 Aug 2022 | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #pragma once + #include "RGBController.h" #include "MSIMysticLight64Controller.h" @@ -9,7 +23,7 @@ public: ~RGBController_MSIMysticLight64(); void SetupZones(); - void ResizeZone(int zone, int new_size); + void ResizeZone(int zone, int new_size); void DeviceUpdateLEDs(); void UpdateZoneLEDs(int zone); @@ -26,4 +40,4 @@ private: MSI_64_MODE mode, unsigned int flags ); -}; \ No newline at end of file +};