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.

HLG150H Class

Module: hlg150h

The Mean Well HLG-150H 150W Single Output Switching Power Supply

Methods

HLG150H

(
  • pinRelay
  • pinPWM
)
Number

Parameters:

  • pinRelay Number

    undefined

  • pinPWM Number

    undefined

Returns:

Number:

getBrightness

() Number

Get brightness

Returns:

Number:

brightness as percentage

getModuleName

() String

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

Returns:

String:

name of module

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