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.

DS1808LC Class

Module: common

The Maxim Integrated DS1808 Dual Log Digital Potentiometer

Methods

DS1808LC

(
  • 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