mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
27 lines
370 B
C++
27 lines
370 B
C++
|
|
||
|
// Local-Hyperion includes
|
||
|
#include "LedDeviceTest.h"
|
||
|
|
||
|
LedDeviceTest::LedDeviceTest() :
|
||
|
_ofs("/home/pi/LedDevice.out")
|
||
|
{
|
||
|
// empty
|
||
|
}
|
||
|
|
||
|
LedDeviceTest::~LedDeviceTest()
|
||
|
{
|
||
|
// empty
|
||
|
}
|
||
|
|
||
|
int LedDeviceTest::write(const std::vector<RgbColor> & ledValues)
|
||
|
{
|
||
|
_ofs << "[";
|
||
|
for (const RgbColor& color : ledValues)
|
||
|
{
|
||
|
_ofs << color;
|
||
|
}
|
||
|
_ofs << "]" << std::endl;
|
||
|
|
||
|
return 0;
|
||
|
}
|