Update ZET Blade controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-06-30 19:01:25 -05:00
parent ce1cdf62aa
commit 0289f0b2d4
5 changed files with 72 additions and 50 deletions

View file

@ -1,14 +1,16 @@
/*-----------------------------------------*\
| RGBController_ZETBladeOptical.cpp |
| |
| Generic RGB Interface for ZET Blade |
| Optical Keyboard |
| |
| Based on HyperX Alloy Elite2 impl by |
| KundaPanda |
| |
| Moon_darker (Vaker) 23/01/2022 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_ZETBladeOptical.cpp |
| |
| RGBController for ZET Blade |
| |
| Based on HyperX Alloy Elite2 implementation by |
| KundaPanda |
| |
| Moon_darker (Vaker) 23 Jan 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBControllerKeyNames.h"
#include "RGBController_ZETBladeOptical.h"

View file

@ -1,20 +1,22 @@
/*-----------------------------------------*\
| RGBController_ZETBladeOptical.cpp |
| |
| Generic RGB Interface for ZET Blade |
| Optical Keyboard |
| |
| Based on HyperX Alloy Elite2 impl by |
| KundaPanda |
| |
| Moon_darker (Vaker) 23/01/2022 |
\*-----------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_ZETBladeOptical.h |
| |
| RGBController for ZET Blade |
| |
| Based on HyperX Alloy Elite2 implementation by |
| KundaPanda |
| |
| Moon_darker (Vaker) 23 Jan 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <atomic>
#include <chrono>
#include <thread>
#include "RGBController.h"
#include "ZETBladeOpticalController.h"

View file

@ -1,17 +1,19 @@
/*-----------------------------------------*\
| ZETBladeOpticalController.cpp |
| |
| Driver for ZET Blade Optical Keyboard |
| |
| Based on HyperX Alloy Elite2 impl by |
| KundaPanda |
| |
| Moon_darker (Vaker) 23/01/2022 |
\*-----------------------------------------*/
#include "ZETBladeOpticalController.h"
/*---------------------------------------------------------*\
| ZETBladeOpticalController.cpp |
| |
| Driver for ZET Blade |
| |
| Based on HyperX Alloy Elite2 implementation by |
| KundaPanda |
| |
| Moon_darker (Vaker) 23 Jan 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include "ZETBladeOpticalController.h"
using namespace std::chrono_literals;

View file

@ -1,20 +1,22 @@
/*-----------------------------------------*\
| ZETBladeOpticalController.h |
| |
| Definitions and types for ZET Blade |
| Optical Keyboard lighting controller |
| |
| Based on HyperX Alloy Elite2 impl by |
| KundaPanda |
| |
| Moon_darker (Vaker) 23/01/2022 |
\*-----------------------------------------*/
#include "RGBController.h"
/*---------------------------------------------------------*\
| ZETBladeOpticalController.h |
| |
| Driver for ZET Blade |
| |
| Based on HyperX Alloy Elite2 implementation by |
| KundaPanda |
| |
| Moon_darker (Vaker) 23 Jan 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <string>
#include <hidapi/hidapi.h>
#pragma once
#include "RGBController.h"
#define ZET_BLADE_OPTICAL_DELAY 12ms
#define ZET_BLADE_OPTICAL_HEADER_LEN 9

View file

@ -1,8 +1,22 @@
/*---------------------------------------------------------*\
| ZETKeyboardControllerDetect.cpp |
| |
| Detector for ZET Blade |
| |
| Based on HyperX Alloy Elite2 implementation by |
| KundaPanda |
| |
| Moon_darker (Vaker) 23 Jan 2022 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <hidapi/hidapi.h>
#include "Detector.h"
#include "ZETBladeOpticalController.h"
#include "RGBController.h"
#include "RGBController_ZETBladeOptical.h"
#include <hidapi/hidapi.h>
/*-----------------------------------------------------*\
| ZET keyboard VID/PID pairs |