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.

LP8860 Class

Module: lp8860

The Texas Instrumements LP8860-Q1 Automotive Catalog Low-EMI, High-Performance 4-Channel LED Driver

Methods

LP8860

(
  • gpioPower
  • i2cBus
)
Number

Parameters:

  • gpioPower Number

    undefined

  • i2cBus Number

    undefined

Returns:

Number:

getModuleName

() String

Returns name of module. This is the string in library name after libupm_

Returns:

String:

name of module

isPowered

() Boolean

Get power state

Returns:

Boolean:

true if powered, false otherwise

setPowerOn

()

Turn on power

setPowerOff

()

Turn off power

getBrightness

() Number

Get brightness

Returns:

Number:

brightness as percentage

setBrightness

(
  • percent
)

Set brightness

Parameters:

  • percent Number

    brightness as percentage