upm  1.6.0
Sensor/Actuator repository for libmraa (v1.9.0)
Public Member Functions | List of all members
ILightController Class Reference

Interface for Light Controllers This interface is used to represent light controllers

Public Member Functions

synchronized void delete ()
 
void setPowerOn ()
 
void setPowerOff ()
 
boolean isPowered ()
 
void setBrightness (int percent)
 
int getBrightness ()
 
- Public Member Functions inherited from IModuleStatus
synchronized void delete ()
 
String getModuleName ()
 

Member Function Documentation

int getBrightness ( )

Get brightness

Returns
brightness as percentage
Exceptions
std::runtime_error
boolean isPowered ( )

Get power state

Returns
true if powered, false otherwise
Exceptions
std::runtime_error
void setBrightness ( int  percent)

Set brightness

Parameters
percentbrightness as percentage
Exceptions
std::runtime_error
void setPowerOff ( )

Turn off power

Exceptions
std::runtime_error
void setPowerOn ( )

Turn on power

Exceptions
std::runtime_error
Inheritance diagram for ILightController:
Inheritance graph
[legend]
Collaboration diagram for ILightController:
Collaboration graph
[legend]

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