Update Gigabyte Aorus RGB Fusion 2 USB motherboard controller files to new standardized header comment
This commit is contained in:
parent
e27c7e8d64
commit
6a8b5ecfa9
5 changed files with 65 additions and 45 deletions
|
|
@ -1,12 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| GigabyteRGBFusion2USBController.cpp |
|
||||
| |
|
||||
| Driver for Gigabyte Aorus RGB Fusion 2.0 |
|
||||
| USB lighting controller |
|
||||
| |
|
||||
| Author: jackun 1/8/2020 |
|
||||
| Maintainer: Chris M (Dr_No) |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| GigabyteRGBFusion2USBController.cpp |
|
||||
| |
|
||||
| Driver for Gigabyte Aorus RGB Fusion 2 USB motherboard |
|
||||
| |
|
||||
| jackun 08 Jan 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "GigabyteRGBFusion2USBController.h"
|
||||
#include "ResourceManager.h"
|
||||
|
|
@ -271,7 +272,7 @@ void RGBFusion2USBController::SetStripColors
|
|||
| FIXME assuming that LED strips ports are 0x58/0x59 for all boards |
|
||||
\*-------------------------------------------------------------------------*/
|
||||
uint32_t byteorder;
|
||||
|
||||
|
||||
if(hdr == HDR_D_LED1_RGB)
|
||||
{
|
||||
byteorder = report.byteorder0;
|
||||
|
|
|
|||
|
|
@ -1,23 +1,24 @@
|
|||
/*-----------------------------------------*\
|
||||
| GigabyteRGBFusion2USBController.h |
|
||||
| |
|
||||
| Definitions and types for Gigabyte Aorus |
|
||||
| RGB Fusion 2.0 USB lighting controller |
|
||||
| |
|
||||
| Author: jackun 1/8/2020 |
|
||||
| Maintainer: Chris M (Dr_No) |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| GigabyteRGBFusion2USBController.h |
|
||||
| |
|
||||
| Driver for Gigabyte Aorus RGB Fusion 2 USB motherboard |
|
||||
| |
|
||||
| jackun 08 Jan 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RGBController.h"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <chrono>
|
||||
#include <cstring>
|
||||
#include <hidapi/hidapi.h>
|
||||
#include <map>
|
||||
#include <thread>
|
||||
|
||||
#pragma once
|
||||
#include <hidapi/hidapi.h>
|
||||
#include "RGBController.h"
|
||||
|
||||
#define GB_CALIBRATION_SIZE (sizeof(GB_Calibrations) / sizeof(GB_Calibrations[0]))
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,20 @@
|
|||
/*---------------------------------------------------------*\
|
||||
| GigabyteRGBFusion2USBControllerDetect.cpp |
|
||||
| |
|
||||
| Detector for Gigabyte Aorus RGB Fusion 2 USB |
|
||||
| motherboard |
|
||||
| |
|
||||
| jackun 08 Jan 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "Detector.h"
|
||||
#include "GigabyteRGBFusion2USBController.h"
|
||||
#include "RGBController_GigabyteRGBFusion2USB.h"
|
||||
#include "dmiinfo.h"
|
||||
|
||||
#define DETECTOR_NAME "Gigabyte RGB Fusion 2 USB"
|
||||
|
||||
#define IT8297_VID 0x048D
|
||||
|
|
|
|||
|
|
@ -1,18 +1,20 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_GigabyteRGBFusion2USB.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for OpenRGB |
|
||||
| Gigabyte RGB Fusion 2.0 USB Driver |
|
||||
| |
|
||||
| Author: jackun 1/8/2020 |
|
||||
| Maintainer: Chris M (Dr_No) |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_GigabyteRGBFusion2USB.cpp |
|
||||
| |
|
||||
| RGBController for Gigabyte Aorus RGB Fusion 2 USB |
|
||||
| motherboard |
|
||||
| |
|
||||
| jackun 08 Jan 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <array>
|
||||
#include <sstream>
|
||||
#include "RGBController_GigabyteRGBFusion2USB.h"
|
||||
#include "ResourceManager.h"
|
||||
#include "SettingsManager.h"
|
||||
#include <sstream>
|
||||
#include <array>
|
||||
|
||||
/*-------------------------------------------------*\
|
||||
| LedHeaders is a map of the led header addresses |
|
||||
|
|
|
|||
|
|
@ -1,18 +1,21 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_GigabyteRGBFusion2USB.h |
|
||||
| |
|
||||
| Generic RGB Interface for OpenRGB |
|
||||
| Gigabyte RGB Fusion 2.0 USB Driver |
|
||||
| |
|
||||
| Author: jackun 1/8/2020 |
|
||||
| Maintainer: Chris M (Dr_No) |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_GigabyteRGBFusion2USB.h |
|
||||
| |
|
||||
| RGBController for Gigabyte Aorus RGB Fusion 2 USB |
|
||||
| motherboard |
|
||||
| |
|
||||
| jackun 08 Jan 2020 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
#include "RGBController.h"
|
||||
#include "GigabyteRGBFusion2USBController.h"
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include "RGBController.h"
|
||||
#include "GigabyteRGBFusion2USBController.h"
|
||||
|
||||
#define RGBFusion2_Digital_LEDS_Min 0;
|
||||
#define RGBFusion2_Digital_LEDS_Max 1024;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue