mraa  1.8.0
Low Level Skeleton Library for Communication on GNU/Linux platforms
Public Member Functions | List of all members
Led Class Reference

Detailed Description

This file defines the LED interface for libmraa

Public Member Functions

synchronized void delete ()
 
 Led (String led)
 
Result setBrightness (int value)
 
int readBrightness ()
 
int readMaxBrightness ()
 
Result trigger (String trigger)
 
Result clearTrigger ()
 

Constructor & Destructor Documentation

Led ( String  led)

Instantiates an LED object

Parameters
ledLED fuction name to use

Member Function Documentation

Result clearTrigger ( )

Clear active LED trigger

Returns
Result of operation
int readBrightness ( )

Read LED brightness value

Returns
LED brightness value
int readMaxBrightness ( )

Read LED maximum brightness value

Returns
LED max brightness value
Result setBrightness ( int  value)

Set LED brightness value

Parameters
valueValue to set LED brightness
Returns
Result of operation
Result trigger ( String  trigger)

Set LED trigger

Parameters
triggerType of trigger to set
Returns
Result of operation

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