pyupm_ds1808lc module

class pyupm_ds1808lc.DS1808LC(gpioPower, i2cBus)[source]

Bases: pyupm_ds1808lc.ILightController

API for DS1808 Dual Log Digital Potentiometer as a Light Controller.

ID: ds1808lc

Name: Lighting Controller

Other Names: DS1808LC

Category: light

Manufacturer: maxim

Connection: i2c

Link:http://www.maximintegrated.com/en/products/analog/data-converters /digital-potentiometers/DS1808.html The Maxim IntegratedDS1808 Dual Log Digital Potentiometer

C++ includes: ds1808lc.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:

class pyupm_ds1808lc.ILightController(*args, **kwargs)[source]

Bases: pyupm_ds1808lc.IModuleStatus

ILightController Interface for Light Controllers.

Interface for Light Controllers

This interface is used to represent light controllers

C++ includes: iLightController.hpp

getBrightness()[source]

virtual int getBrightness()=0

Get brightness

brightness as percentage

std::runtime_error:

isPowered()[source]

virtual bool isPowered()=0

Get power state

true if powered, false otherwise

std::runtime_error:

setBrightness(percent)[source]

virtual void setBrightness(int percent)=0

Set brightness

percent: brightness as percentage

std::runtime_error:

setPowerOff()[source]

virtual void setPowerOff()=0

Turn off power

std::runtime_error:

setPowerOn()[source]

virtual void setPowerOn()=0

Turn on power

std::runtime_error:

class pyupm_ds1808lc.IModuleStatus(*args, **kwargs)[source]

Bases: object

getModuleName()[source]

virtual const char* getModuleName()=0

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

name of module