Publish curated LumaOps source from c85ee9ef8f1454f5c305398902afbb9e6738de40
Managed validation / full (push) Failing after 8s
Managed validation / full (push) Failing after 8s
This commit is contained in:
1 parent
91f8b3e3c1
commit
def7920856
2271 files changed
+501225
-501178
No files matched your search
@@ -1,43 +1,43 @@
|
||||
/*---------------------------------------------------------*\
|
||||
| ElgatoLightStripController.h |
|
||||
| |
|
||||
| Driver for Elgato Light Strip |
|
||||
| |
|
||||
| Monks (@iamtherealestmonkey) 03 Nov 2021 |
|
||||
| DomePlaysHD 12 Mar 2024 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include "net_port.h"
|
||||
#include "hsv.h"
|
||||
|
||||
class ElgatoLightStripController
|
||||
{
|
||||
public:
|
||||
ElgatoLightStripController(std::string ip);
|
||||
~ElgatoLightStripController();
|
||||
|
||||
std::string GetLocation();
|
||||
std::string GetName();
|
||||
std::string GetVersion();
|
||||
std::string GetManufacturer();
|
||||
std::string GetUniqueID();
|
||||
|
||||
void SetColor(hsv_t hsv_color);
|
||||
int GetBrightness();
|
||||
void SetBrightness(int brightness);
|
||||
|
||||
private:
|
||||
std::string GetRequest(int hue, int saturation, int brightness);
|
||||
std::string location;
|
||||
std::string firmware_version;
|
||||
std::string serialnumber;
|
||||
std::string displayname;
|
||||
net_port port;
|
||||
int device_brightness;
|
||||
};
|
||||
/*---------------------------------------------------------*\
|
||||
| ElgatoLightStripController.h |
|
||||
| |
|
||||
| Driver for Elgato Light Strip |
|
||||
| |
|
||||
| Monks (@iamtherealestmonkey) 03 Nov 2021 |
|
||||
| DomePlaysHD 12 Mar 2024 |
|
||||
| |
|
||||
| This file is part of the OpenRGB project |
|
||||
| SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
\*---------------------------------------------------------*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include "net_port.h"
|
||||
#include "hsv.h"
|
||||
|
||||
class ElgatoLightStripController
|
||||
{
|
||||
public:
|
||||
ElgatoLightStripController(std::string ip);
|
||||
~ElgatoLightStripController();
|
||||
|
||||
std::string GetLocation();
|
||||
std::string GetName();
|
||||
std::string GetVersion();
|
||||
std::string GetManufacturer();
|
||||
std::string GetUniqueID();
|
||||
|
||||
void SetColor(hsv_t hsv_color);
|
||||
int GetBrightness();
|
||||
void SetBrightness(int brightness);
|
||||
|
||||
private:
|
||||
std::string GetRequest(int hue, int saturation, int brightness);
|
||||
std::string location;
|
||||
std::string firmware_version;
|
||||
std::string serialnumber;
|
||||
std::string displayname;
|
||||
net_port port;
|
||||
int device_brightness;
|
||||
};
|
||||
Reference in new issue
Block a user