Update FanBus controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-17 20:23:15 -05:00
parent cd5b8e08c7
commit 502f23e102
7 changed files with 65 additions and 30 deletions

View file

@ -1,7 +1,12 @@
/*---------------------------------------------------------*\
| FanBus RGB Controller Interface |
| FanBusController.cpp |
| |
| Adam Honse (calcprogrammer1@gmail.com), 1/12/2021 |
| Driver for FanBus devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "FanBusController.h"
@ -41,7 +46,7 @@ void FanBusController::SetLEDs(std::vector<RGBColor> colors)
bus->write_queue(dev, 0x11 + (led_idx * 3), grn);
bus->write_queue(dev, 0x12 + (led_idx * 3), blu);
}
bus->write_queue(dev, 0x0C, 0x01);
bus->process_queue();

View file

@ -1,16 +1,20 @@
/*---------------------------------------------------------*\
| Definitions for FanBus RGB Controller Interface |
| FanBusController.h |
| |
| Adam Honse (calcprogrammer1@gmail.com), 1/12/2021 |
| Driver for FanBus devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <vector>
#include "FanBusInterface.h"
#include "RGBController.h"
#include <vector>
class FanBusController
{
public:

View file

@ -1,3 +1,14 @@
/*---------------------------------------------------------*\
| FanBusControllerDetect.cpp |
| |
| Detector for FanBus devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "Detector.h"
#include "FanBusController.h"
#include "RGBController_FanBus.h"

View file

@ -1,12 +1,16 @@
/*---------------------------------------------------------*\
| FanBus Interface |
| FanBusInterface.cpp |
| |
| Adam Honse (calcprogrammer1@gmail.com), 1/12/2021 |
| Interface for FanBus devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "FanBusInterface.h"
#include <thread>
#include "FanBusInterface.h"
using namespace std::chrono_literals;

View file

@ -1,13 +1,17 @@
/*---------------------------------------------------------*\
| FanBus Interface |
| FanBusInterface.h |
| |
| Adam Honse (calcprogrammer1@gmail.com), 1/12/2021 |
| Interface for FanBus devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "serial_port.h"
#include <string>
#include <vector>
#include "serial_port.h"
class FanBusInterface
{
@ -40,7 +44,7 @@ public:
);
int process_queue();
private:
serial_port * serialport;
std::string port_name;

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| RGBController_FanBus.cpp |
| |
| Generic RGB Interface for FanBus devices |
| |
| Adam Honse (CalcProgrammer1) 1/12/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_FanBus.cpp |
| |
| RGBController for FanBus devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_FanBus.h"

View file

@ -1,12 +1,16 @@
/*-----------------------------------------*\
| RGBController_FanBus.h |
| |
| Generic RGB Interface for FanBus devices |
| |
| Adam Honse (CalcProgrammer1) 1/12/2021 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_FanBus.h |
| |
| RGBController for FanBus devices |
| |
| Adam Honse (calcprogrammer1@gmail.com) 12 Jan 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "FanBusController.h"