pyupm_hlg150h module

class pyupm_hlg150h.HLG150H(pinRelay, pinPWM)[source]

Bases: object

API for HLG-150H Lighting Power Supply Controller.

ID: hlg150h

Name: 150W Constant Voltage/current LED Driver

Other Names: HLG150H

Category: light

Connection: pwm

Link:https://www.meanwell-web.com/en/product-info/ac-dc-power- supply/led- driver/101-180-w-led-driver/hlg-150h/product/HLG-150H-24B The Mean WellHLG-150H 150W Single Output Switching Power Supply

C++ includes: hlg150h.hpp

getBrightness()[source]

int getBrightness()

Get brightness

brightness as percentage

std::runtime_error:

getModuleName()[source]

const char* getModuleName()

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

name of module

isPowered()[source]

bool isPowered()

Get power state

true if powered, false otherwise

std::runtime_error:

setBrightness(dutyPercent)[source]

void setBrightness(int dutyPercent)

Set brightness

percent: brightness as percentage

std::runtime_error:

setPowerOff()[source]

void setPowerOff()

Turn off power

std::runtime_error:

setPowerOn()[source]

void setPowerOn()

Turn on power

std::runtime_error: