Update ThingM controller files to new standardized header comment

This commit is contained in:
Adam Honse 2024-06-17 23:26:21 -05:00
parent ec8921381f
commit 89c11b5eeb
5 changed files with 59 additions and 35 deletions

View file

@ -1,13 +1,16 @@
/*-------------------------------------------------------------------*\
| BlinkController.cpp |
| |
| Driver for ThingM Blink device |
| |
| Eric S (edbgon) 1st Oct 2021 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| BlinkController.cpp |
| |
| Driver for ThingM Blink |
| |
| Eric S (edbgon) 01 Oct 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "BlinkController.h"
#include <cstring>
#include "BlinkController.h"
BlinkController::BlinkController(hid_device* dev_handle, char *_path)
{
@ -55,7 +58,7 @@ std::string BlinkController::GetLocation()
}
void BlinkController::SendUpdate(unsigned char led, unsigned char red, unsigned char green, unsigned char blue, unsigned int speed)
{
{
unsigned char buffer[BLINK_PACKET_SIZE] = { 0x00 };
memset(buffer, 0x00, BLINK_PACKET_SIZE);

View file

@ -1,17 +1,20 @@
/*-------------------------------------------------------------------*\
| BlinkController.h |
| |
| Driver for ThingM Blink device |
| |
| Eric S (edbgon) 1st Oct 2021 |
\*-------------------------------------------------------------------*/
#include <string>
#include <array>
#include <hidapi/hidapi.h>
/*---------------------------------------------------------*\
| BlinkController.h |
| |
| Driver for ThingM Blink |
| |
| Eric S (edbgon) 01 Oct 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include <array>
#include <string>
#include <hidapi/hidapi.h>
#define BLINK_PACKET_SIZE 9 //Includes extra first byte for non HID Report packets
#define BLINK_MODE_OFF 0

View file

@ -1,10 +1,13 @@
/*-------------------------------------------------------------------*\
| RGBController_BlinkController.cpp |
| |
| Driver for ThingM Blink device |
| |
| Eric S (edbgon) 1st Oct 2021 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_BlinkController.cpp |
| |
| RGBController for ThingM Blink |
| |
| Eric S (edbgon) 01 Oct 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include "RGBController_BlinkController.h"

View file

@ -1,12 +1,16 @@
/*-------------------------------------------------------------------*\
| RGBController_BlinkController.h |
| |
| Driver for ThingM Blink device |
| |
| Eric S (edbgon) 1st Oct 2021 |
\*-------------------------------------------------------------------*/
/*---------------------------------------------------------*\
| RGBController_BlinkController.h |
| |
| RGBController for ThingM Blink |
| |
| Eric S (edbgon) 01 Oct 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#pragma once
#include "RGBController.h"
#include "BlinkController.h"

View file

@ -1,8 +1,19 @@
/*---------------------------------------------------------*\
| ThingMControllerDetect.cpp |
| |
| Detector for ThingM Blink |
| |
| Eric S (edbgon) 01 Oct 2021 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <hidapi/hidapi.h>
#include "Detector.h"
#include "BlinkController.h"
#include "RGBController.h"
#include "RGBController_BlinkController.h"
#include <hidapi/hidapi.h>
#define THINGM_VID 0x27B8