Update Gigabyte Aorus RGB Fusion 2 motherboard controller files to new standardized header comment
This commit is contained in:
parent
cee3be9113
commit
e27c7e8d64
5 changed files with 66 additions and 61 deletions
|
|
@ -1,22 +1,20 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| GigabyteRGBFusion2SMBusController.cpp |
|
| GigabyteRGBFusion2SMBusController.cpp |
|
||||||
| |
|
| |
|
||||||
| Driver for Gigabyte Aorus RGB Fusion 2 |
|
| Driver for Gigabyte Aorus RGB Fusion 2 SMBus |
|
||||||
| SMBus lighting controller |
|
| motherboard |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 3/12/2020 |
|
| Adam Honse (CalcProgrammer1) 12 Mar 2020 |
|
||||||
| Matt Harper 5/5/2020 |
|
| Matt Harper 05 May 2020 |
|
||||||
\*-----------------------------------------*/
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "GigabyteRGBFusion2SMBusController.h"
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include "GigabyteRGBFusion2SMBusController.h"
|
||||||
#ifdef DEBUG
|
|
||||||
#include <iostream>
|
|
||||||
#include <iomanip>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
RGBFusion2SMBusController::RGBFusion2SMBusController(i2c_smbus_interface* bus, rgb_fusion_dev_id dev, std::string mb_name)
|
RGBFusion2SMBusController::RGBFusion2SMBusController(i2c_smbus_interface* bus, rgb_fusion_dev_id dev, std::string mb_name)
|
||||||
{
|
{
|
||||||
|
|
@ -71,19 +69,6 @@ void RGBFusion2SMBusController::WriteLED(int led)
|
||||||
led -= 1;
|
led -= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
std::cout << std::hex << write_register << "\t";
|
|
||||||
for(int i = 0; i < 2; i++)
|
|
||||||
{
|
|
||||||
for(int j = 0; j < 16; j++)
|
|
||||||
{
|
|
||||||
std::cout << std::setw(2) << std::setfill('0') << std::hex << (int)led_data[led+i][j] << " ";
|
|
||||||
}
|
|
||||||
std::cout << " ";
|
|
||||||
}
|
|
||||||
std::cout << std::endl;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bus->i2c_smbus_write_block_data(RGB_FUSION_2_SMBUS_ADDR, (u8)write_register, 32, led_data[led]);
|
bus->i2c_smbus_write_block_data(RGB_FUSION_2_SMBUS_ADDR, (u8)write_register, 32, led_data[led]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,21 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| GigabyteRGBFusion2SMBusController.h |
|
| GigabyteRGBFusion2SMBusController.h |
|
||||||
| |
|
| |
|
||||||
| Definitions and types for Gigabyte Aorus |
|
| Driver for Gigabyte Aorus RGB Fusion 2 SMBus |
|
||||||
| RGB Fusion 2 SMBus lighting controller |
|
| motherboard |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 3/12/2020 |
|
| Adam Honse (CalcProgrammer1) 12 Mar 2020 |
|
||||||
\*-----------------------------------------*/
|
| Matt Harper 05 May 2020 |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "i2c_smbus.h"
|
#include "i2c_smbus.h"
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
typedef unsigned char rgb_fusion_dev_id;
|
typedef unsigned char rgb_fusion_dev_id;
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
|
@ -92,7 +96,7 @@ public:
|
||||||
std::string GetDeviceLocation();
|
std::string GetDeviceLocation();
|
||||||
unsigned int GetLEDCount();
|
unsigned int GetLEDCount();
|
||||||
void Apply();
|
void Apply();
|
||||||
|
|
||||||
void SetLEDEffect
|
void SetLEDEffect
|
||||||
(
|
(
|
||||||
unsigned int led,
|
unsigned int led,
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,27 @@
|
||||||
|
/*---------------------------------------------------------*\
|
||||||
|
| GigabyteRGBFusion2SMBusControllerDetect.cpp |
|
||||||
|
| |
|
||||||
|
| Detector for Gigabyte Aorus RGB Fusion 2 SMBus |
|
||||||
|
| motherboard |
|
||||||
|
| |
|
||||||
|
| Matt Harper 05 May 2020 |
|
||||||
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
#include "Detector.h"
|
#include "Detector.h"
|
||||||
#include "GigabyteRGBFusion2SMBusController.h"
|
#include "GigabyteRGBFusion2SMBusController.h"
|
||||||
#include "LogManager.h"
|
#include "LogManager.h"
|
||||||
#include "RGBController.h"
|
#include "RGBController.h"
|
||||||
#include "RGBController_GigabyteRGBFusion2SMBus.h"
|
#include "RGBController_GigabyteRGBFusion2SMBus.h"
|
||||||
#include "SettingsManager.h"
|
#include "SettingsManager.h"
|
||||||
|
|
||||||
#include "i2c_smbus.h"
|
#include "i2c_smbus.h"
|
||||||
#include "pci_ids.h"
|
#include "pci_ids.h"
|
||||||
#include <vector>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string>
|
|
||||||
#include "dmiinfo.h"
|
#include "dmiinfo.h"
|
||||||
|
|
||||||
#define DETECTOR_NAME "Gigabyte RGB Fusion 2 SMBus"
|
#define DETECTOR_NAME "Gigabyte RGB Fusion 2 SMBus"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,14 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_GigabyteRGBFusion2SMBus.cpp|
|
| RGBController_GigabyteRGBFusion2SMBus.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for OpenRGB |
|
| RGBController for Gigabyte Aorus RGB Fusion 2 SMBus |
|
||||||
| Gigabyte RGB Fusion 2 SMBUS Driver |
|
| motherboard |
|
||||||
| |
|
| |
|
||||||
| Matt Harper (5/5/2020) |
|
| Matt Harper 05 May 2020 |
|
||||||
\*-----------------------------------------*/
|
| |
|
||||||
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#include "RGBController_GigabyteRGBFusion2SMBus.h"
|
#include "RGBController_GigabyteRGBFusion2SMBus.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,14 @@
|
||||||
|
/*---------------------------------------------------------*\
|
||||||
/*-----------------------------------------*\
|
| RGBController_GigabyteRGBFusion2SMBus.h |
|
||||||
| RGBController_GigabyteRGBFusion2SMBus.h |
|
| |
|
||||||
| |
|
| RGBController for Gigabyte Aorus RGB Fusion 2 SMBus |
|
||||||
| Generic RGB Interface for OpenRGB |
|
| motherboard |
|
||||||
| Gigabyte RGB Fusion 2 SMBUS Driver |
|
| |
|
||||||
| |
|
| Matt Harper 05 May 2020 |
|
||||||
| Matt Harper (5/5/2020) |
|
| |
|
||||||
\*-----------------------------------------*/
|
| This file is part of the OpenRGB project |
|
||||||
|
| SPDX-License-Identifier: GPL-2.0-only |
|
||||||
|
\*---------------------------------------------------------*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue