mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-28 01:42:13 -04:00
Update FanBus controller files to new standardized header comment
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user