mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-02 04:07:48 -05:00
39 lines
879 B
C++
39 lines
879 B
C++
/*---------------------------------------------------------*\
|
|
| Definitions for BlinkyTape Interface |
|
|
| |
|
|
| Matt Mets (matt@blinkinlabs.com), 07/01/2021 |
|
|
\*---------------------------------------------------------*/
|
|
|
|
#ifndef BLINKYTAPE_H
|
|
#define BLINKYTAPE_H
|
|
|
|
#include "RGBController.h"
|
|
#include "serial_port.h"
|
|
|
|
struct BlinkyTapeDevice
|
|
{
|
|
std::string port;
|
|
unsigned int num_leds;
|
|
};
|
|
|
|
class BlinkyTapeController
|
|
{
|
|
public:
|
|
BlinkyTapeController();
|
|
~BlinkyTapeController();
|
|
|
|
void Initialize(const std::string &portname);
|
|
|
|
char* GetLEDString();
|
|
std::string GetLocation();
|
|
|
|
void SetLEDs(std::vector<RGBColor> colors);
|
|
|
|
private:
|
|
char led_string[1024];
|
|
std::string port_name;
|
|
serial_port *serialport = nullptr;
|
|
};
|
|
|
|
#endif
|