Update Gigabyte Aorus RGB Fusion 2 motherboard controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-19 17:56:19 -05:00
parent cee3be9113
commit e27c7e8d64
5 changed files with 66 additions and 61 deletions

View file

@ -1,22 +1,20 @@
/*-----------------------------------------*\
| GigabyteRGBFusion2SMBusController.cpp |
| |
| Driver for Gigabyte Aorus RGB Fusion 2 |
| SMBus lighting controller |
| |
| Adam Honse (CalcProgrammer1) 3/12/2020 |
| Matt Harper 5/5/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| GigabyteRGBFusion2SMBusController.cpp |
| |
| Driver for Gigabyte Aorus RGB Fusion 2 SMBus |
| motherboard |
| |
| 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 |
\*---------------------------------------------------------*/
#include "GigabyteRGBFusion2SMBusController.h"
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#ifdef DEBUG
#include <iostream>
#include <iomanip>
#endif
#include "GigabyteRGBFusion2SMBusController.h"
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;
}
#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]);
}

View file

@ -1,17 +1,21 @@
/*-----------------------------------------*\
| GigabyteRGBFusion2SMBusController.h |
| |
| Definitions and types for Gigabyte Aorus |
| RGB Fusion 2 SMBus lighting controller |
| |
| Adam Honse (CalcProgrammer1) 3/12/2020 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| GigabyteRGBFusion2SMBusController.h |
| |
| Driver for Gigabyte Aorus RGB Fusion 2 SMBus |
| motherboard |
| |
| 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 "i2c_smbus.h"
#pragma once
typedef unsigned char rgb_fusion_dev_id;
enum
@ -92,7 +96,7 @@ public:
std::string GetDeviceLocation();
unsigned int GetLEDCount();
void Apply();
void SetLEDEffect
(
unsigned int led,

View file

@ -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 "GigabyteRGBFusion2SMBusController.h"
#include "LogManager.h"
#include "RGBController.h"
#include "RGBController_GigabyteRGBFusion2SMBus.h"
#include "SettingsManager.h"
#include "i2c_smbus.h"
#include "pci_ids.h"
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include "dmiinfo.h"
#define DETECTOR_NAME "Gigabyte RGB Fusion 2 SMBus"

View file

@ -1,11 +1,14 @@
/*-----------------------------------------*\
| RGBController_GigabyteRGBFusion2SMBus.cpp|
| |
| Generic RGB Interface for OpenRGB |
| Gigabyte RGB Fusion 2 SMBUS Driver |
| |
| Matt Harper (5/5/2020) |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_GigabyteRGBFusion2SMBus.cpp |
| |
| RGBController 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 "RGBController_GigabyteRGBFusion2SMBus.h"

View file

@ -1,12 +1,14 @@
/*-----------------------------------------*\
| RGBController_GigabyteRGBFusion2SMBus.h |
| |
| Generic RGB Interface for OpenRGB |
| Gigabyte RGB Fusion 2 SMBUS Driver |
| |
| Matt Harper (5/5/2020) |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_GigabyteRGBFusion2SMBus.h |
| |
| RGBController 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 |
\*---------------------------------------------------------*/
#pragma once