Added SEDU device to option for led-devices

Former-commit-id: b14c47c34f7dfc99cd81b1d15fcc3610d2058c13
This commit is contained in:
T. van der Zwan 2013-11-05 16:21:20 +00:00
parent c787241747
commit ecaf665d85
2 changed files with 12 additions and 0 deletions

View File

@ -67,4 +67,5 @@ add_library(hyperion
target_link_libraries(hyperion
hyperion-utils
serialport
${QT_LIBRARIES})

View File

@ -11,6 +11,7 @@
#include <hyperion/ImageProcessorFactory.h>
#include "device/LedDeviceLdp6803.h"
#include "device/LedDeviceSedu.h"
#include "device/LedDeviceTest.h"
#include "device/LedDeviceWs2801.h"
@ -47,6 +48,16 @@ LedDevice* Hyperion::createDevice(const Json::Value& deviceConfig)
device = deviceLdp6803;
}
else if (type == "sedu")
{
const std::string output = deviceConfig["output"].asString();
const unsigned rate = deviceConfig["rate"].asInt();
LedDeviceSedu* deviceSedu = new LedDeviceSedu(output, rate);
deviceSedu->open();
device = deviceSedu;
}
else if (type == "test")
{
const std::string output = deviceConfig["output"].asString();