RADLib
RADical C++ application framework
RADDevice::Led Class Reference

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...
 

Detailed Description

LED sysfs helper.

Constructor & Destructor Documentation

◆ Led()

RADDevice::Led::Led ( std::string  name,
DevicePaths  paths = {} 
)

Creates an LED wrapper.

Member Function Documentation

◆ brightness()

RADCore::RADResult<int> RADDevice::Led::brightness ( ) const

Reads brightness.

◆ maxBrightness()

RADCore::RADResult<int> RADDevice::Led::maxBrightness ( ) const

Returns maximum brightness.

◆ setBrightness()

bool RADDevice::Led::setBrightness ( int  brightness,
std::string *  error = nullptr 
) const

Writes brightness.


The documentation for this class was generated from the following file: