Update GaiZhongGai keyboard controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-05-19 01:09:29 -05:00
parent 1b0d915a63
commit 019b049d06
5 changed files with 62 additions and 59 deletions

View file

@ -1,19 +1,26 @@
/*---------------------------------------------------------*\
| GaiZhongGaiController.cpp |
| |
| Driver for GaiZhongGai keyboard |
| |
| An Yang 24 Jun 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <cstring>
#include <thread>
#include "GaiZhongGaiController.h"
/*---------------------------------------------------------------*\
| GaiZhongGaiController.cpp |
| |
| https://oshwlab.com/yangdsada/GaiZhongGai-Keyboard-68-4PRO |
| https://oshwhub.com/myng/42-jian-pan |
| https://oshwhub.com/hivisme/17jian-shuo-zi-xiao-jian-pan |
| https://oshwhub.com/yangzen/xing-huo-2-qi-guang-ban-qu-dong- |
| https://oshwhub.com/morempty/CH552gyin-liang-xuan-niu |
| |
| An Yang 2023/6/24 |
\*---------------------------------------------------------------*/
#include <cstring>
#include "GaiZhongGaiController.h"
#include <thread>
GaiZhongGaiKeyboardController::GaiZhongGaiKeyboardController(hid_device* dev_handle, hid_device_info* info)
{
dev = dev_handle;

View file

@ -1,21 +1,19 @@
/*---------------------------------------------------------------*\
| GaiZhongGaiController.h |
| |
| https://oshwlab.com/yangdsada/GaiZhongGai-Keyboard-68-4PRO |
| https://oshwhub.com/myng/42-jian-pan |
| https://oshwhub.com/hivisme/17jian-shuo-zi-xiao-jian-pan |
| https://oshwhub.com/yangzen/xing-huo-2-qi-guang-ban-qu-dong- |
| https://oshwhub.com/morempty/CH552gyin-liang-xuan-niu |
| |
| An Yang 2023/6/24 |
\*---------------------------------------------------------------*/
/*---------------------------------------------------------*\
| GaiZhongGaiController.h |
| |
| Driver for GaiZhongGai keyboard |
| |
| An Yang 24 Jun 2023 |
| |
| 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"
/*-----------------------------------------------------*\
| GaiZhongGai vendor ID |
@ -52,7 +50,7 @@ public:
uint8_t* GetDataFlash();
uint16_t GetChannelLen(uint8_t ch);
void SetChannelLen(uint8_t ch , uint16_t len);
void SendColors
(
unsigned char* color_data,

View file

@ -1,20 +1,19 @@
/*---------------------------------------------------------------*\
| GaiZhongGaiControllerDetect.cpp |
| |
| https://oshwlab.com/yangdsada/GaiZhongGai-Keyboard-68-4PRO |
| https://oshwhub.com/myng/42-jian-pan |
| https://oshwhub.com/hivisme/17jian-shuo-zi-xiao-jian-pan |
| https://oshwhub.com/yangzen/xing-huo-2-qi-guang-ban-qu-dong- |
| https://oshwhub.com/morempty/CH552gyin-liang-xuan-niu |
| |
| An Yang 2023/6/24 |
\*---------------------------------------------------------------*/
/*---------------------------------------------------------*\
| GaiZhongGaiControllerDetect.cpp |
| |
| Detector for GaiZhongGai keyboard |
| |
| An Yang 24 Jun 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <hidapi/hidapi.h>
#include "Detector.h"
#include "GaiZhongGaiController.h"
#include "RGBController.h"
#include "RGBController_GaiZhongGai.h"
#include <hidapi/hidapi.h>
/******************************************************************************************\
* *

View file

@ -1,18 +1,18 @@
/*---------------------------------------------------------------*\
| RGBController_GaiZhongGai.cpp |
| |
| https://oshwlab.com/yangdsada/GaiZhongGai-Keyboard-68-4PRO |
| https://oshwhub.com/myng/42-jian-pan |
| https://oshwhub.com/hivisme/17jian-shuo-zi-xiao-jian-pan |
| https://oshwhub.com/yangzen/xing-huo-2-qi-guang-ban-qu-dong- |
| https://oshwhub.com/morempty/CH552gyin-liang-xuan-niu |
| |
| An Yang 2023/6/24 |
\*---------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_GaiZhongGai.cpp |
| |
| RGBController for GaiZhongGai keyboard |
| |
| An Yang 24 Jun 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <math.h>
#include "RGBController_GaiZhongGai.h"
#include "RGBControllerKeyNames.h"
#include <math.h>
using namespace std;
//0xFFFFFFFF indicates an unused entry in matrix

View file

@ -1,14 +1,13 @@
/*---------------------------------------------------------------*\
| RGBController_GaiZhongGai.h |
| |
| https://oshwlab.com/yangdsada/GaiZhongGai-Keyboard-68-4PRO |
| https://oshwhub.com/myng/42-jian-pan |
| https://oshwhub.com/hivisme/17jian-shuo-zi-xiao-jian-pan |
| https://oshwhub.com/yangzen/xing-huo-2-qi-guang-ban-qu-dong- |
| https://oshwhub.com/morempty/CH552gyin-liang-xuan-niu |
| |
| An Yang 2023/6/24 |
\*---------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_GaiZhongGai.h |
| |
| RGBController for GaiZhongGai keyboard |
| |
| An Yang 24 Jun 2023 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
@ -22,7 +21,7 @@ public:
void SetupZones();
void ResizeZone(int zone, int new_size);
void DeviceUpdateLEDs();
void UpdateZoneLEDs(int zone);
void UpdateSingleLED(int led);