Update NZXT Hue Plus controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-06-01 20:33:09 -05:00
parent e0fa66a82a
commit 1d2a57b8e0
5 changed files with 52 additions and 29 deletions

View file

@ -1,15 +1,19 @@
/*---------------------------------------------------------*\
| Processing Code for NZXT Hue+ |
| NZXTHuePlusController.cpp |
| |
| Adam Honse (calcprogrammer1@gmail.com), 12/11/2016 |
| Driver for NZXT Hue Plus |
| |
| Adam Honse (calcprogrammer1@gmail.com) 27 Aug 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "NZXTHuePlusController.h"
#include <cstring>
#include <fstream>
#include <iostream>
#include <string>
#include <cstring>
#include "NZXTHuePlusController.h"
using namespace std::chrono_literals;
@ -26,7 +30,7 @@ HuePlusController::~HuePlusController()
void HuePlusController::Initialize(char* port)
{
port_name = port;
serialport = new serial_port(port_name.c_str(), HUE_PLUS_BAUD);
channel_leds[HUE_PLUS_CHANNEL_1_IDX] = GetLEDsOnChannel(HUE_PLUS_CHANNEL_1);

View file

@ -1,16 +1,19 @@
/*---------------------------------------------------------*\
| Definitions for NZXT Hue+ |
| NZXTHuePlusController.h |
| |
| Adam Honse (calcprogrammer1@gmail.com), 12/11/2016 |
| Driver for NZXT Hue Plus |
| |
| Adam Honse (calcprogrammer1@gmail.com) 27 Aug 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#ifndef LED_STRIP_H
#define LED_STRIP_H
#pragma once
#include <vector>
#include "RGBController.h"
#include "serial_port.h"
#include <vector>
#ifndef TRUE
#define TRUE true
@ -109,5 +112,3 @@ private:
unsigned char* color_data
);
};
#endif

View file

@ -1,9 +1,20 @@
/*---------------------------------------------------------*\
| NZXTHuePlusControllerDetect.cpp |
| |
| Detector for NZXT Hue Plus |
| |
| Adam Honse (calcprogrammer1@gmail.com) 27 Aug 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <vector>
#include "Detector.h"
#include "NZXTHuePlusController.h"
#include "RGBController.h"
#include "RGBController_NZXTHuePlus.h"
#include "find_usb_serial_port.h"
#include <vector>
#define NZXT_HUE_PLUS_VID 0x04D8
#define NZXT_HUE_PLUS_PID 0x00DF

View file

@ -1,10 +1,13 @@
/*-----------------------------------------*\
| RGBController_NZXTHuePlus.cpp |
| |
| Generic RGB Interface for NZXT Hue+ |
| |
| Adam Honse (CalcProgrammer1) 6/20/2019 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_NZXTHuePlus.cpp |
| |
| RGBController for NZXT Hue Plus |
| |
| Adam Honse (calcprogrammer1@gmail.com) 20 Jun 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_NZXTHuePlus.h"

View file

@ -1,12 +1,16 @@
/*-----------------------------------------*\
| RGBController_NZXTHuePlus.h |
| |
| Generic RGB Interface for NZXT Hue+ |
| |
| Adam Honse (CalcProgrammer1) 6/20/2019 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_NZXTHuePlus.h |
| |
| RGBController for NZXT Hue Plus |
| |
| Adam Honse (calcprogrammer1@gmail.com) 20 Jun 2019 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "serial_port.h"
#include "NZXTHuePlusController.h"