Update Logitech G203L controller files to new standardized header comment
This commit is contained in:
parent
523b01054a
commit
52423a325e
4 changed files with 43 additions and 9 deletions
|
|
@ -1,10 +1,17 @@
|
|||
#include "LogitechG203LController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| LogitechG203LController.cpp |
|
||||
| |
|
||||
| Driver for Logitech G203L |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include <cstring>
|
||||
#include "LogitechG203LController.h"
|
||||
|
||||
#define PACKET_SIZE 20
|
||||
|
||||
|
||||
LogitechG203LController::LogitechG203LController(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
dev = dev_handle;
|
||||
|
|
@ -149,7 +156,7 @@ void LogitechG203LController::SetMode(
|
|||
usb_buf[0x0D] = (unsigned char)((speed>>8) & 0x000000FF);
|
||||
usb_buf[0x0E] = brightness;
|
||||
}
|
||||
|
||||
|
||||
//END BYTE
|
||||
usb_buf[0x10] = 0x01;
|
||||
|
||||
|
|
@ -181,7 +188,7 @@ void LogitechG203LController::SetDevice(std::vector<RGBColor> colors)
|
|||
usb_buf[0x0D] = RGBGetRValue(colors[2]);
|
||||
usb_buf[0x0E] = RGBGetGValue(colors[2]);
|
||||
usb_buf[0x0F] = RGBGetBValue(colors[2]);
|
||||
|
||||
|
||||
usb_buf[0x10] = 0xFF;
|
||||
|
||||
SendPacket(usb_buf);
|
||||
|
|
@ -1,9 +1,17 @@
|
|||
#include "RGBController.h"
|
||||
/*---------------------------------------------------------*\
|
||||
| LogitechG203LController.h |
|
||||
| |
|
||||
| Driver for Logitech G203L |
|
||||
| |
|
||||
| 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"
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
@ -24,7 +32,7 @@ public:
|
|||
|
||||
std::string GetDeviceLocation();
|
||||
std::string GetSerialString();
|
||||
|
||||
|
||||
void SetSingleLED(int led, unsigned char red, unsigned char green, unsigned char blue);
|
||||
void SetMode(int mode, int speed, unsigned char brightness, unsigned char dir, unsigned char red, unsigned char green, unsigned char blue);
|
||||
void SetDevice(std::vector<RGBColor> colors);
|
||||
|
|
@ -1,3 +1,12 @@
|
|||
/*---------------------------------------------------------*\
|
||||
| RGBController_LogitechG203L.cpp |
|
||||
| |
|
||||
| Driver for Logitech G203L |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#include "RGBController_LogitechG203L.h"
|
||||
|
||||
/**------------------------------------------------------------------*\
|
||||
|
|
@ -1,4 +1,14 @@
|
|||
/*---------------------------------------------------------*\
|
||||
| RGBController_LogitechG203L.h |
|
||||
| |
|
||||
| Driver for Logitech G203L |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-only |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "RGBController.h"
|
||||
#include "LogitechG203LController.h"
|
||||
|
||||
|
|
@ -9,7 +19,7 @@ public:
|
|||
~RGBController_LogitechG203L();
|
||||
|
||||
void SetupZones();
|
||||
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
Loading…
Add table
Add a link
Reference in a new issue