Update Zalman Z Sync controller files to new standardized header comment
This commit is contained in:
parent
db8932749e
commit
b62c7fb432
5 changed files with 68 additions and 55 deletions
|
|
@ -1,11 +1,13 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_ZalmanZSync.cpp |
|
||||
| |
|
||||
| Generic RGB Interface for Zalman Z Sync |
|
||||
| lighting devices |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 1/30/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_ZalmanZSync.cpp |
|
||||
| |
|
||||
| RGBController for Zalman Z Sync |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 30 Jan 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_ZalmanZSync.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,16 @@
|
|||
/*-----------------------------------------*\
|
||||
| RGBController_ZalmanZSync.h |
|
||||
| |
|
||||
| Generic RGB Interface for Zalman Z Sync |
|
||||
| lighting devices |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 1/30/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| RGBController_ZalmanZSync.h |
|
||||
| |
|
||||
| RGBController for Zalman Z Sync |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 30 Jan 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RGBController.h"
|
||||
#include "ZalmanZSyncController.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,25 +1,23 @@
|
|||
/*-----------------------------------------*\
|
||||
| ZalmanZSyncController.cpp |
|
||||
| |
|
||||
| Definitions and types for Zalman Z Sync |
|
||||
| lighting controller |
|
||||
| |
|
||||
| The Zalman Z Sync device uses the same |
|
||||
| protocol as the Corsair Lighting Node |
|
||||
| devices except supports 8 channels. |
|
||||
| |
|
||||
| This code copied from the |
|
||||
| CorsairLightingNodeController files |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 1/30/2021 |
|
||||
\*-----------------------------------------*/
|
||||
|
||||
#include "ZalmanZSyncController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| ZalmanZSyncController.cpp |
|
||||
| |
|
||||
| Driver for Zalman Z Sync |
|
||||
| |
|
||||
| Based on CorsairLightingNodeConroller, the protocol is |
|
||||
| the same as the Corsair Lighting Node except with 8 |
|
||||
| channels |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 30 Jan 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
#include "ZalmanZSyncController.h"
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
|
|
@ -178,7 +176,7 @@ void ZalmanZSyncController::SetChannelLEDs(unsigned char channel, RGBColor * col
|
|||
{
|
||||
pkt_size = 50;
|
||||
}
|
||||
|
||||
|
||||
for(int color_idx = 0; color_idx < pkt_size; color_idx++)
|
||||
{
|
||||
red_color_data[color_idx] = RGBGetRValue(colors[pkt_offset + color_idx]);
|
||||
|
|
|
|||
|
|
@ -1,25 +1,24 @@
|
|||
/*-----------------------------------------*\
|
||||
| ZalmanZSyncController.h |
|
||||
| |
|
||||
| Definitions and types for Zalman Z Sync |
|
||||
| lighting controller |
|
||||
| |
|
||||
| The Zalman Z Sync device uses the same |
|
||||
| protocol as the Corsair Lighting Node |
|
||||
| devices except supports 8 channels. |
|
||||
| |
|
||||
| This code copied from the |
|
||||
| CorsairLightingNodeController files |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 1/30/2021 |
|
||||
\*-----------------------------------------*/
|
||||
/*---------------------------------------------------------*\
|
||||
| ZalmanZSyncController.h |
|
||||
| |
|
||||
| Driver for Zalman Z Sync |
|
||||
| |
|
||||
| Based on CorsairLightingNodeConroller, the protocol is |
|
||||
| the same as the Corsair Lighting Node except with 8 |
|
||||
| channels |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 30 Jan 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RGBController.h"
|
||||
#include <chrono>
|
||||
#include <vector>
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#pragma once
|
||||
#include "RGBController.h"
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,9 +1,20 @@
|
|||
/*---------------------------------------------------------*\
|
||||
| ZalmanZSyncControllerDetect.cpp |
|
||||
| |
|
||||
| Detector for Zalman Z Sync |
|
||||
| |
|
||||
| Adam Honse (CalcProgrammer1) 30 Jan 2021 |
|
||||
| |
|
||||
| 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 "ZalmanZSyncController.h"
|
||||
#include "RGBController.h"
|
||||
#include "RGBController_ZalmanZSync.h"
|
||||
#include <vector>
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#define ZALMAN_VID 0x1C57
|
||||
#define ZALMAN_Z_SYNC_PID 0x7ED0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue