mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Leddevice refactoring the next part (#253)
* add general switchOff * refactoring of leddevices regarding ledcount and switchoff * remove obsolete includes
This commit is contained in:
@@ -67,3 +67,18 @@ Json::Value LedDevice::getLedDeviceSchemas()
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
int LedDevice::setLedValues(const std::vector<ColorRgb>& ledValues)
|
||||
{
|
||||
_ledCount = ledValues.size();
|
||||
return write(ledValues);
|
||||
}
|
||||
|
||||
int LedDevice::switchOff()
|
||||
{
|
||||
return write(std::vector<ColorRgb>(_ledCount, ColorRgb::BLACK ));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user