mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-31 03:07:49 -05:00
34 lines
1.3 KiB
C++
34 lines
1.3 KiB
C++
/*---------------------------------------------------------*\
|
|
| QMKOpenRGBRevDController.h |
|
|
| |
|
|
| Driver for OpenRGB QMK Keyboard Protocol Revision D |
|
|
| |
|
|
| Neneya 26 Dec 2021 |
|
|
| |
|
|
| This file is part of the OpenRGB project |
|
|
| SPDX-License-Identifier: GPL-2.0-only |
|
|
\*---------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include "QMKOpenRGBBaseController.h"
|
|
|
|
class QMKOpenRGBRevDController : public QMKOpenRGBBaseController
|
|
{
|
|
public:
|
|
QMKOpenRGBRevDController(hid_device *dev_handle, const char *path);
|
|
~QMKOpenRGBRevDController();
|
|
|
|
//Virtual function implementations
|
|
void GetLEDInfo(unsigned int leds_count);
|
|
void DirectModeSetSingleLED(unsigned int led, unsigned char red, unsigned char green, unsigned char blue);
|
|
void DirectModeSetLEDs(std::vector<RGBColor> colors, unsigned int num_colors);
|
|
|
|
//Protocol Specific functions
|
|
std::vector<unsigned int> GetLEDValues();
|
|
std::vector<unsigned int> GetEnabledModes();
|
|
|
|
private:
|
|
std::vector<unsigned int> led_values;
|
|
};
|