UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

ILightController Class

Module: lp8860

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

Methods

setPowerOn

()

Provided by the hlg150h module.

Turn on power

setPowerOff

()

Provided by the hlg150h module.

Turn off power

isPowered

() Boolean

Provided by the hlg150h module.

Get power state

Returns:

Boolean:

true if powered, false otherwise

setBrightness

(
  • percent
)

Provided by the hlg150h module.

Set brightness

Parameters:

  • percent Number

    brightness as percentage

getBrightness

() Number

Provided by the hlg150h module.

Get brightness

Returns:

Number:

brightness as percentage

setPowerOn

()

Turn on power

setPowerOff

()

Turn off power

isPowered

() Boolean

Get power state

Returns:

Boolean:

true if powered, false otherwise

setBrightness

(
  • percent
)

Set brightness

Parameters:

  • percent Number

    brightness as percentage

getBrightness

() Number

Get brightness

Returns:

Number:

brightness as percentage