Publish curated LumaOps source from c85ee9ef8f1454f5c305398902afbb9e6738de40
Managed validation / full (push) Failing after 8s

This commit is contained in:
Public Source Publisher committed 2026-09-30 00:26:45 +00:00
1 parent 91f8b3e3c1
commit def7920856
2271 files changed
+501225 -501178

No files matched your search

@@ -1,47 +1,47 @@
/*---------------------------------------------------------*\
| LinuxLEDController_Linux.h |
| |
| Driver for Linux sysfs LEDs |
| |
| Adam Honse (calcprogrammer1@gmail.com) 25 Sep 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
#include <fstream>
class LinuxLEDController
{
public:
LinuxLEDController(std::string dev_name);
~LinuxLEDController();
std::string GetName();
std::string GetRedPath();
std::string GetBluePath();
std::string GetGreenPath();
std::string GetRgbPath();
void OpenRedPath(std::string red_path);
void OpenGreenPath(std::string green_path);
void OpenBluePath(std::string blue_path);
void OpenRgbPath(std::string rgb_path);
void SetRGB(unsigned char red, unsigned char grn, unsigned char blu);
private:
std::string led_r_path;
std::string led_g_path;
std::string led_b_path;
std::string led_rgb_path;
std::ofstream led_r_brightness;
std::ofstream led_g_brightness;
std::ofstream led_b_brightness;
std::ofstream led_rgb_brightness;
std::ofstream led_rgb_color;
std::string name;
};
/*---------------------------------------------------------*\
| LinuxLEDController_Linux.h |
| |
| Driver for Linux sysfs LEDs |
| |
| Adam Honse (calcprogrammer1@gmail.com) 25 Sep 2020 |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-or-later |
\*---------------------------------------------------------*/
#pragma once
#include <fstream>
class LinuxLEDController
{
public:
LinuxLEDController(std::string dev_name);
~LinuxLEDController();
std::string GetName();
std::string GetRedPath();
std::string GetBluePath();
std::string GetGreenPath();
std::string GetRgbPath();
void OpenRedPath(std::string red_path);
void OpenGreenPath(std::string green_path);
void OpenBluePath(std::string blue_path);
void OpenRgbPath(std::string rgb_path);
void SetRGB(unsigned char red, unsigned char grn, unsigned char blu);
private:
std::string led_r_path;
std::string led_g_path;
std::string led_b_path;
std::string led_rgb_path;
std::ofstream led_r_brightness;
std::ofstream led_g_brightness;
std::ofstream led_b_brightness;
std::ofstream led_rgb_brightness;
std::ofstream led_rgb_color;
std::string name;
};