MRAA

MRAA is a low level skeleton library for communication on GNU/Linux platforms. See examples here.

Led Class

Module: mraa

This file defines the LED interface for libmraa

Methods

Led

(
  • led
)
Number

Instantiates an LED object

Parameters:

  • led Number

    LED index to use

Returns:

Number:

Led

(
  • led_dev
)
Number

Instantiates an LED object

Parameters:

  • led_dev String

    LED function name to use

Returns:

Number:

setBrightness

(
  • value
)
Enum Result

Set LED brightness value

Parameters:

  • value Number

    Value to set LED brightness

Returns:

Enum Result:

Result of operation

readBrightness

() Number

Read LED brightness value

Returns:

Number:

LED brightness value

readMaxBrightness

() Number

Read LED maximum brightness value

Returns:

Number:

LED max brightness value

trigger

(
  • trigger
)
Enum Result

Set LED trigger

Parameters:

  • trigger String

    Type of trigger to set

Returns:

Enum Result:

Result of operation

clearTrigger

() Enum Result

Clear active LED trigger

Returns:

Enum Result:

Result of operation