Update MSI Optix controller files to new standardized header comment
This commit is contained in:
parent
9c19195625
commit
803d1681c4
5 changed files with 58 additions and 38 deletions
|
|
@ -1,13 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
| MSIOptixController.cpp |
|
||||
| |
|
||||
| Driver for MSI Optix monitor lighting |
|
||||
| controller |
|
||||
| |
|
||||
| Guimard Morgan (morg) 1/10/2022 |
|
||||
\*-----------------------------------------*/
|
||||
#include "MSIOptixController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| MSIOptixController.cpp |
|
||||
| |
|
||||
| Driver for MSI Optix |
|
||||
| |
|
||||
| Morgan Guimard (morg) 10 Jan 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <string.h>
|
||||
#include "MSIOptixController.h"
|
||||
|
||||
MSIOptixController::MSIOptixController(hid_device* dev_handle, const hid_device_info& info)
|
||||
{
|
||||
|
|
@ -205,7 +208,7 @@ void MSIOptixController::SetMode(std::vector<RGBColor> colors, unsigned char bri
|
|||
}
|
||||
|
||||
else if(mode_flags & MODE_FLAG_HAS_MODE_SPECIFIC_COLOR)
|
||||
{
|
||||
{
|
||||
for(unsigned int i = 0; i < MSI_OPTIX_COLOR_PACKET_SIZE; i++)
|
||||
{
|
||||
usb_buf[++offset] = red;
|
||||
|
|
|
|||
|
|
@ -1,16 +1,19 @@
|
|||
/*-----------------------------------------*\
|
||||
| MSIOptixController.h |
|
||||
| |
|
||||
| Driver for MSI Optix monitor lighting |
|
||||
| controller - header file |
|
||||
| |
|
||||
| Guimard Morgan (morg) 1/10/2022 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| MSIOptixController.h |
|
||||
| |
|
||||
| Driver for MSI Optix |
|
||||
| |
|
||||
| Morgan Guimard (morg) 10 Jan 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RGBController.h"
|
||||
#include <string>
|
||||
#include <hidapi/hidapi.h>
|
||||
#include "RGBController.h"
|
||||
|
||||
#define MSI_OPTIX_REPORT_SIZE 168
|
||||
#define MSI_OPTIX_COLOR_PACKET_SIZE 48
|
||||
|
|
|
|||
|
|
@ -1,3 +1,14 @@
|
|||
/*---------------------------------------------------------*\
|
||||
| MSIOptixControllerDetect.cpp |
|
||||
| |
|
||||
| Detector for MSI Optix |
|
||||
| |
|
||||
| Morgan Guimard (morg) 10 Jan 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "Detector.h"
|
||||
#include "MSIOptixController.h"
|
||||
#include "RGBController.h"
|
||||
|
|
|
|||
|
|
@ -1,16 +1,17 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_MSIOptix.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for OpenRGB |
|
||||
| MSIOptix USB Driver |
|
||||
| |
|
||||
| Guimard Morgan (morg) 1/10/2022 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_MSIOptix.cpp |
|
||||
| |
|
||||
| RGBController for MSI Optix |
|
||||
| |
|
||||
| Morgan Guimard (morg) 10 Jan 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_MSIOptix.h"
|
||||
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
#include "RGBController_MSIOptix.h"
|
||||
|
||||
/**------------------------------------------------------------------*\
|
||||
@name MSI Optix
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_MSIOptix.h |
|
||||
| |
|
||||
| Generic RGB Interface for OpenRGB |
|
||||
| MISOptix RGB USB Driver |
|
||||
| |
|
||||
| Guimard Morgan (morg) 1/10/2022 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_MSIOptix.h |
|
||||
| |
|
||||
| RGBController for MSI Optix |
|
||||
| |
|
||||
| Morgan Guimard (morg) 10 Jan 2022 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue