Files
OpenRGB/Controllers/LinuxLEDController/LinuxLEDController_Linux.h
Chris M d2b4ff1c56 Updated OpenRGB.pro to dynamically resolve source files
* Created FORMS macro list dynamically
* Added GUI_H and CONTROLLERS_H list to HEADERS
* Added GUI_CPP and CONTROLLERS_CPP list to SOURCES
* Added unique list of GUI_INCLUDES and CONTROLLER_INCLUDES to INCLUDES
* Adjusted platform specific builds to align build targets
2024-02-21 22:00:02 +11:00

29 lines
653 B
C++

#pragma once
#include <fstream>
class LinuxLEDController
{
public:
LinuxLEDController();
~LinuxLEDController();
std::string GetRedPath();
std::string GetBluePath();
std::string GetGreenPath();
void OpenRedPath(std::string red_path);
void OpenGreenPath(std::string green_path);
void OpenBluePath(std::string blue_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::ofstream led_r_brightness;
std::ofstream led_g_brightness;
std::ofstream led_b_brightness;
};