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 String

    LED fuction 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