Publish curated LumaOps source from c85ee9ef8f1454f5c305398902afbb9e6738de40
Managed validation / full (push) Failing after 8s

This commit is contained in:
Public Source Publisher committed 2026-09-30 00:26:45 +00:00
1 parent 91f8b3e3c1
commit def7920856
2271 files changed
+501225 -501178

No files matched your search

+54 -54
View File
@@ -1,54 +1,54 @@
/*---------------------------------------------------------*\
| 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-or-later |
\*---------------------------------------------------------*/
#pragma once
#include <array>
#include <string>
#include <hidapi.h>
#define BLINK_PACKET_SIZE 9 //Includes extra first byte for non HID Report packets
#define BLINK_MODE_OFF 0
#define BLINK_MODE_DIRECT 1
#define BLINK_MODE_FADE 2
#define HID_MAX_STR 255
class BlinkController
{
public:
BlinkController(hid_device* dev_handle, char *_path);
~BlinkController();
std::string GetDeviceName();
std::string GetSerial();
std::string GetLocation();
unsigned char GetLedRed();
unsigned char GetLedGreen();
unsigned char GetLedBlue();
unsigned char GetLedSpeed();
unsigned char GetBrightness();
void SendUpdate(unsigned char led, unsigned char red, unsigned char green, unsigned char blue, unsigned int speed);
private:
std::string device_name;
std::string serial;
std::string location;
hid_device* dev;
unsigned char current_red;
unsigned char current_green;
unsigned char current_blue;
void SendUpdate();
};
/*---------------------------------------------------------*\
| 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-or-later |
\*---------------------------------------------------------*/
#pragma once
#include <array>
#include <string>
#include <hidapi.h>
#define BLINK_PACKET_SIZE 9 //Includes extra first byte for non HID Report packets
#define BLINK_MODE_OFF 0
#define BLINK_MODE_DIRECT 1
#define BLINK_MODE_FADE 2
#define HID_MAX_STR 255
class BlinkController
{
public:
BlinkController(hid_device* dev_handle, char *_path);
~BlinkController();
std::string GetDeviceName();
std::string GetSerial();
std::string GetLocation();
unsigned char GetLedRed();
unsigned char GetLedGreen();
unsigned char GetLedBlue();
unsigned char GetLedSpeed();
unsigned char GetBrightness();
void SendUpdate(unsigned char led, unsigned char red, unsigned char green, unsigned char blue, unsigned int speed);
private:
std::string device_name;
std::string serial;
std::string location;
hid_device* dev;
unsigned char current_red;
unsigned char current_green;
unsigned char current_blue;
void SendUpdate();
};