Initial commit of support for the Philips Hue system.

Former-commit-id: 5b7d802c326151ee96a5b950badb01e94adfe7f3
This commit is contained in:
ntim
2014-04-27 12:59:44 +02:00
parent 570a011ff4
commit 88c523518a
4 changed files with 179 additions and 0 deletions

6
libsrc/leddevice/LedDeviceFactory.cpp Normal file → Executable file
View File

@@ -28,6 +28,7 @@
#include "LedDeviceSedu.h"
#include "LedDeviceTest.h"
#include "LedDeviceHyperionUsbasp.h"
#include "LedDevicePhilipsHue.h"
LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
{
@@ -159,6 +160,11 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
deviceHyperionUsbasp->open();
device = deviceHyperionUsbasp;
}
else if (type == "philipshue")
{
const std::string output = deviceConfig["output"].asString();
device = new LedDevicePhilipsHue(output);
}
else if (type == "test")
{
const std::string output = deviceConfig["output"].asString();