Publish LumaOps source
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/*---------------------------------------------------------*\
|
||||
| BlinkyTapeController.h |
|
||||
| |
|
||||
| Driver for BlinkyTape |
|
||||
| |
|
||||
| Matt Mets (matt@blinkinlabs.com) 01 Jul 2021 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#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;
|
||||
};
|
||||
Reference in New Issue
Block a user