mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Added SEDU device to option for led-devices
Former-commit-id: b14c47c34f7dfc99cd81b1d15fcc3610d2058c13
This commit is contained in:
parent
c787241747
commit
ecaf665d85
@ -67,4 +67,5 @@ add_library(hyperion
|
|||||||
|
|
||||||
target_link_libraries(hyperion
|
target_link_libraries(hyperion
|
||||||
hyperion-utils
|
hyperion-utils
|
||||||
|
serialport
|
||||||
${QT_LIBRARIES})
|
${QT_LIBRARIES})
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
#include <hyperion/ImageProcessorFactory.h>
|
#include <hyperion/ImageProcessorFactory.h>
|
||||||
|
|
||||||
#include "device/LedDeviceLdp6803.h"
|
#include "device/LedDeviceLdp6803.h"
|
||||||
|
#include "device/LedDeviceSedu.h"
|
||||||
#include "device/LedDeviceTest.h"
|
#include "device/LedDeviceTest.h"
|
||||||
#include "device/LedDeviceWs2801.h"
|
#include "device/LedDeviceWs2801.h"
|
||||||
|
|
||||||
@ -47,6 +48,16 @@ LedDevice* Hyperion::createDevice(const Json::Value& deviceConfig)
|
|||||||
|
|
||||||
device = deviceLdp6803;
|
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")
|
else if (type == "test")
|
||||||
{
|
{
|
||||||
const std::string output = deviceConfig["output"].asString();
|
const std::string output = deviceConfig["output"].asString();
|
||||||
|
Loading…
Reference in New Issue
Block a user