Update MSI Mystic Light 64-byte controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-06-01 00:15:51 -05:00
parent e924257ddd
commit aa4f58694b
4 changed files with 62 additions and 30 deletions

View file

@ -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 <algorithm>
#include <array>
#include <bitset>
#include "MSIMysticLight64Controller.h"
MSIMysticLight64Controller::MSIMysticLight64Controller
(

View file

@ -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 <cstring>
#include <hidapi/hidapi.h>
#include <limits>
/*---------------------------------------------------------*\
| 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 <cstring>
#include <limits>
#include <hidapi/hidapi.h>
#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[]
);

View file

@ -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);
}
}

View file

@ -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
);
};
};