mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-03 04:37:50 -05:00
* Added QMKOpenRGBBaseController * Refactored Rev9, RevB and RevD controllers to remove redundant code * Updated "qmk_keycode_keyname_map" to add missing keycodes * Resolves #3781
32 lines
1.3 KiB
C++
32 lines
1.3 KiB
C++
/*-------------------------------------------------------------------*\
|
|
| QMKOpenRGBRev9Controller.h |
|
|
| |
|
|
| Driver for QMK keyboards using OpenRGB Protocol (Revision 9) |
|
|
| |
|
|
| Revision 9 was the initial protocol supported by OpenRGB 0.6. |
|
|
| |
|
|
| Kasper 10th Octobber 2020 |
|
|
| Jath03 28th May 2021 |
|
|
\*-------------------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include "QMKOpenRGBBaseController.h"
|
|
|
|
class QMKOpenRGBRev9Controller : public QMKOpenRGBBaseController
|
|
{
|
|
public:
|
|
QMKOpenRGBRev9Controller(hid_device *dev_handle, const char *path);
|
|
~QMKOpenRGBRev9Controller();
|
|
|
|
//Virtual function implementations
|
|
void GetLEDInfo(unsigned int led);
|
|
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
|
|
bool GetIsModeEnabled(unsigned int mode);
|
|
|
|
private:
|
|
};
|