pyupm_lp8860 module

class pyupm_lp8860.LP8860(gpioPower, i2cBus)[source]

Bases: object

API for LP8860 LED Lighting Controller.

ID: lp8860

Name: LED Lighting Controller

Other Names: LP8860

Category: light

Manufacturer: ti

Connection: i2c

Link:http://www.ti.com/product/LP8860-Q1 The Texas InstrumementsLP8860-Q1 Automotive Catalog Low-EMI, High-Performance 4-Channel LED Driver

C++ includes: lp8860.hpp

getBrightness()[source]

int getBrightness()

Get brightness

brightness as percentage

std::runtime_error:

getModuleName()[source]

virtual 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: