Files
OpenRGB/Controllers/DygmaRaiseController/DygmaRaiseController.h
eispalast 2162ff2d27 Added support for the Dygma Raise
Commit amended for code style by Adam Honse <calcprogrammer1@gmail.com>
2021-12-19 16:31:45 -06:00

36 lines
1020 B
C++

/*-----------------------------------------*\
| DygmaRaiseController.h |
| |
| Driver for Dygma Raise keyboard |
| |
| Timo Schlegel (@eispalast) 12/12/2021 |
\*-----------------------------------------*/
#pragma once
#include "RGBController.h"
#include <string>
#include <vector>
#include "serial_port.h"
#pragma once
#define DYGMA_RAISE_VID 0x1209
#define DYGMA_RAISE_PID 0x2201
#define DYGMA_RAISE_BAUD 115200
#define MAX_LEN (4*3*132+9) //max. 4 Bytes per led channel * 3 channels * 132 leds + codeword led.theme
class DygmaRaiseController
{
public:
DygmaRaiseController();
~DygmaRaiseController();
void Initialize(char* port);
std::string GetDeviceLocation();
void SendDirect(std::vector<RGBColor>colors, size_t led_num);
private:
std::string location;
std::string port_name;
serial_port * serialport = nullptr;
};