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