upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
API for DS1808 Dual Log Digital Potentiometer as a Light Controller. More...
The Maxim Integrated DS1808 Dual Log Digital Potentiometer
Public Member Functions | |
DS1808LC (int gpioPower, int i2cBus) | |
const char * | getModuleName () |
bool | isPowered () |
void | setPowerOn () |
void | setPowerOff () |
int | getBrightness () |
void | setBrightness (int dutyPercent) |
|
inlinevirtual |
Returns name of module. This is the string in library name after libupm_
Implements IModuleStatus.
|
virtual |
Get power state
std::runtime_error |
Implements ILightController.
|
virtual |
Turn on power
std::runtime_error |
Implements ILightController.
|
virtual |
Turn off power
std::runtime_error |
Implements ILightController.
|
virtual |
Get brightness
std::runtime_error |
Implements ILightController.
|
virtual |
Set brightness
percent | brightness as percentage |
std::runtime_error |
Implements ILightController.