|
RADLib
RADical C++ application framework
|
LED sysfs helper. More...
#include <RADDevice.h>
Public Member Functions | |
| Led (std::string name, DevicePaths paths={}) | |
| Creates an LED wrapper. More... | |
| bool | setBrightness (int brightness, std::string *error=nullptr) const |
| Writes brightness. More... | |
| RADCore::RADResult< int > | brightness () const |
| Reads brightness. More... | |
| RADCore::RADResult< int > | maxBrightness () const |
| Returns maximum brightness. More... | |
LED sysfs helper.
| RADDevice::Led::Led | ( | std::string | name, |
| DevicePaths | paths = {} |
||
| ) |
Creates an LED wrapper.
| RADCore::RADResult<int> RADDevice::Led::brightness | ( | ) | const |
Reads brightness.
| RADCore::RADResult<int> RADDevice::Led::maxBrightness | ( | ) | const |
Returns maximum brightness.
| bool RADDevice::Led::setBrightness | ( | int | brightness, |
| std::string * | error = nullptr |
||
| ) | const |
Writes brightness.