mraa  1.8.0
Low Level Skeleton Library for Communication on GNU/Linux platforms
Public Member Functions
Led Class Reference

Detailed Description

This file defines the LED interface for libmraa

Public Member Functions

 Led (const char *led)
 
 Led (void *led_context)
 
 ~Led ()
 
Result setBrightness (int value)
 
int readBrightness ()
 
int readMaxBrightness ()
 
Result trigger (const char *trigger)
 
Result clearTrigger ()
 

Constructor & Destructor Documentation

Led ( const char *  led)
inline

Instantiates an LED object

Parameters
ledLED fuction name to use

Here is the call graph for this function:

Led ( void *  led_context)
inline

LED Constructor, takes a pointer to a LED context and initialises the LED class

Parameters
led_contextvoid * to LED context
~Led ( )
inline

LED object destructor

Here is the call graph for this function:

Member Function Documentation

Result setBrightness ( int  value)
inline

Set LED brightness value

Parameters
valueValue to set LED brightness
Returns
Result of operation

Here is the call graph for this function:

int readBrightness ( )
inline

Read LED brightness value

Returns
LED brightness value

Here is the call graph for this function:

int readMaxBrightness ( )
inline

Read LED maximum brightness value

Returns
LED max brightness value

Here is the call graph for this function:

Result trigger ( const char *  trigger)
inline

Set LED trigger

Parameters
triggerType of trigger to set
Returns
Result of operation

Here is the call graph for this function:

Result clearTrigger ( )
inline

Clear active LED trigger

Returns
Result of operation

Here is the call graph for this function:


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