Update FanBus controller files to new standardized header comment
This commit is contained in:
parent
cd5b8e08c7
commit
502f23e102
7 changed files with 65 additions and 30 deletions
|
|
@ -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"
|
#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, 0x11 + (led_idx * 3), grn);
|
||||||
bus->write_queue(dev, 0x12 + (led_idx * 3), blu);
|
bus->write_queue(dev, 0x12 + (led_idx * 3), blu);
|
||||||
}
|
}
|
||||||
|
|
||||||
bus->write_queue(dev, 0x0C, 0x01);
|
bus->write_queue(dev, 0x0C, 0x01);
|
||||||
|
|
||||||
bus->process_queue();
|
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
|
#pragma once
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
#include "FanBusInterface.h"
|
#include "FanBusInterface.h"
|
||||||
#include "RGBController.h"
|
#include "RGBController.h"
|
||||||
|
|
||||||
#include <vector>
|
|
||||||
|
|
||||||
class FanBusController
|
class FanBusController
|
||||||
{
|
{
|
||||||
public:
|
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 "Detector.h"
|
||||||
#include "FanBusController.h"
|
#include "FanBusController.h"
|
||||||
#include "RGBController_FanBus.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 <thread>
|
||||||
|
#include "FanBusInterface.h"
|
||||||
|
|
||||||
using namespace std::chrono_literals;
|
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 <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include "serial_port.h"
|
||||||
|
|
||||||
class FanBusInterface
|
class FanBusInterface
|
||||||
{
|
{
|
||||||
|
|
@ -40,7 +44,7 @@ public:
|
||||||
);
|
);
|
||||||
|
|
||||||
int process_queue();
|
int process_queue();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
serial_port * serialport;
|
serial_port * serialport;
|
||||||
std::string port_name;
|
std::string port_name;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,13 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_FanBus.cpp |
|
| RGBController_FanBus.cpp |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for FanBus devices |
|
| RGBController for FanBus devices |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 1/12/2021 |
|
| 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"
|
#include "RGBController_FanBus.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,16 @@
|
||||||
/*-----------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| RGBController_FanBus.h |
|
| RGBController_FanBus.h |
|
||||||
| |
|
| |
|
||||||
| Generic RGB Interface for FanBus devices |
|
| RGBController for FanBus devices |
|
||||||
| |
|
| |
|
||||||
| Adam Honse (CalcProgrammer1) 1/12/2021 |
|
| 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
|
#pragma once
|
||||||
|
|
||||||
#include "RGBController.h"
|
#include "RGBController.h"
|
||||||
#include "FanBusController.h"
|
#include "FanBusController.h"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue