Added first implementation of Paintpack device

Former-commit-id: 0ef7025a3ad67aebb0268e888b26b1d5095e27d8
This commit is contained in:
T. van der Zwan
2013-12-10 19:28:27 +00:00
parent f65f546c61
commit 599afe675f
4 changed files with 147 additions and 0 deletions

View File

@@ -22,6 +22,7 @@
#include "device/LedDeviceTest.h"
#include "device/LedDeviceWs2801.h"
#include "device/LedDeviceAdalight.h"
#include "device/LedDevicePaintpack.h"
#include "device/LedDeviceLightpack.h"
#include "device/LedDeviceMultiLightpack.h"
@@ -95,6 +96,13 @@ LedDevice* Hyperion::createDevice(const Json::Value& deviceConfig)
device = deviceLightpack;
}
else if (type == "paintpack")
{
LedDevicePaintpack * devicePainLightpack = new LedDevicePaintpack();
devicePainLightpack->open();
device = devicePainLightpack;
}
else if (type == "multi-lightpack")
{
LedDeviceMultiLightpack* deviceLightpack = new LedDeviceMultiLightpack();