API for LP8860 LED Lighting Controller.
More...
The Texas Instrumements LP8860-Q1 Automotive Catalog Low-EMI, High-Performance 4-Channel LED Driver
- ID: lp8860
- Name: LED Lighting Controller
- Other Names: LP8860
- Category: light
- Manufacturer: ti
- Connection: i2c
upm::LP8860 lightController(LP8860_GPIO_PWR, EDISON_I2C_BUS);
std::cout << "Existing state: ";
printState(lightController);
if (argc == 2) {
std::string arg = argv[1];
int brightness = ::atoi(argv[1]);
if (brightness > 0) {
lightController.setPowerOn();
lightController.setBrightness(brightness);
} else
lightController.setPowerOff();
}
std::cout << "Now: ";
printState(lightController);
- Link: http://www.ti.com/product/LP8860-Q1
virtual const char* getModuleName |
( |
| ) |
|
|
inlinevirtual |
Returns name of module. This is the string in library name after libupm_
- Returns
- name of module
Implements IModuleStatus.
Get power state
- Returns
- true if powered, false otherwise
- Exceptions
-
Implements ILightController.
Get brightness
- Returns
- brightness as percentage
- Exceptions
-
Implements ILightController.
void setBrightness |
( |
int |
percent | ) |
|
|
virtual |
Set brightness
- Parameters
-
percent | brightness as percentage |
- Exceptions
-
Implements ILightController.
The documentation for this class was generated from the following files: