Update Thermaltake Poseidon Z RGB controller files to new standardized header comment
This commit is contained in:
parent
90d92ddbd5
commit
7e0c9cf3e3
5 changed files with 62 additions and 45 deletions
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_ThermaltakePoseidonZRGB.cpp|
|
||||
| |
|
||||
| Generic RGB Interface for Thermaltake |
|
||||
| Poseidon Z RGB Keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 12/25/2019 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_ThermaltakePoseidonZRGB.cpp |
|
||||
| |
|
||||
| RGBController for Thermaltake Poseidon Z RGB |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 25 Dec 2019 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBControllerKeyNames.h"
|
||||
#include "RGBController_ThermaltakePoseidonZRGB.h"
|
||||
|
|
|
|||
|
|
@ -1,13 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_ThermaltakePoseidonZRGB.h |
|
||||
| |
|
||||
| Generic RGB Interface for Thermaltake |
|
||||
| Poseidon Z RGB Keyboard |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 12/25/2019 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_ThermaltakePoseidonZRGB.h |
|
||||
| |
|
||||
| RGBController for Thermaltake Poseidon Z RGB |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 25 Dec 2019 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RGBController.h"
|
||||
#include "ThermaltakePoseidonZRGBController.h"
|
||||
|
||||
|
|
@ -19,7 +22,7 @@ public:
|
|||
|
||||
void SetupZones();
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
|
@ -28,4 +31,4 @@ public:
|
|||
|
||||
private:
|
||||
PoseidonZRGBController* controller;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
| ThermaltakePoseidonZRGBController.cpp |
|
||||
| |
|
||||
| Driver for Thermaltake Poseidon Z RGB |
|
||||
| Keyboard lighting controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 12/25/2019 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "ThermaltakePoseidonZRGBController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| ThermaltakePoseidonZRGBController.cpp |
|
||||
| |
|
||||
| Driver for Thermaltake Poseidon Z RGB |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 25 Dec 2019 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "ThermaltakePoseidonZRGBController.h"
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
|
|
@ -121,7 +122,7 @@ void PoseidonZRGBController::SetLEDsDirect(std::vector<RGBColor> colors)
|
|||
hid_send_feature_report(dev, red_grn_buf, 264);
|
||||
|
||||
std::this_thread::sleep_for(5ms);
|
||||
|
||||
|
||||
hid_send_feature_report(dev, blu_buf, 264);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
/*-----------------------------------------*\
|
||||
| ThermaltakePoseidonZRGBController.h |
|
||||
| |
|
||||
| Definitions and types for Thermaltake |
|
||||
| Poseidon Z RGB Keyboard lighting |
|
||||
| controller |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 12/25/2019 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| ThermaltakePoseidonZRGBController.h |
|
||||
| |
|
||||
| Driver for Thermaltake Poseidon Z RGB |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 25 Dec 2019 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController.h"
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#pragma once
|
||||
#include "RGBController.h"
|
||||
|
||||
#define POSEIDONZ_START 0x07
|
||||
#define POSEIDONZ_PROFILE 0x01
|
||||
|
|
@ -83,7 +83,7 @@ public:
|
|||
void SetMode(unsigned char mode, unsigned char direction, unsigned char speed);
|
||||
void SetLEDsDirect(std::vector<RGBColor> colors);
|
||||
void SetLEDs(std::vector<RGBColor> colors);
|
||||
|
||||
|
||||
private:
|
||||
hid_device* dev;
|
||||
unsigned char active_mode;
|
||||
|
|
@ -100,7 +100,7 @@ private:
|
|||
unsigned char brightness,
|
||||
unsigned char speed
|
||||
);
|
||||
|
||||
|
||||
void SendColor
|
||||
(
|
||||
unsigned char profile_to_edit,
|
||||
|
|
|
|||
|
|
@ -1,9 +1,20 @@
|
|||
/*---------------------------------------------------------*\
|
||||
| ThermaltakePoseidonZRGBControllerDetect.cpp |
|
||||
| |
|
||||
| Detector for Thermaltake Poseidon Z RGB |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 25 Dec 2019 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <vector>
|
||||
#include <hidapi/hidapi.h>
|
||||
#include "Detector.h"
|
||||
#include "ThermaltakePoseidonZRGBController.h"
|
||||
#include "RGBController.h"
|
||||
#include "RGBController_ThermaltakePoseidonZRGB.h"
|
||||
#include <vector>
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#define TT_POSEIDON_Z_RGB_VID 0x264A
|
||||
#define TT_POSEIDON_Z_RGB_PID 0x3006
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue