diff --git a/libsrc/hyperion/CMakeLists.txt b/libsrc/hyperion/CMakeLists.txt index c63bb95b..60e71032 100644 --- a/libsrc/hyperion/CMakeLists.txt +++ b/libsrc/hyperion/CMakeLists.txt @@ -67,4 +67,5 @@ add_library(hyperion target_link_libraries(hyperion hyperion-utils + serialport ${QT_LIBRARIES}) diff --git a/libsrc/hyperion/Hyperion.cpp b/libsrc/hyperion/Hyperion.cpp index d9513e96..5a257a88 100644 --- a/libsrc/hyperion/Hyperion.cpp +++ b/libsrc/hyperion/Hyperion.cpp @@ -11,6 +11,7 @@ #include #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();