hyperion.ng/test/TestRs232HighSpeed.cpp
T. van der Zwan 47d3f475ed Removed bug in Hyperion.cpp and warning in TestRs232HighSpeed.cpp
Former-commit-id: 63e992a3590db5a4e2c8d121b08291588f347ac7
2013-12-28 08:41:23 +01:00

33 lines
456 B
C++

// Hyperion includes
#include "../libsrc/leddevice/LedRs232Device.h"
class TestDevice : public LedRs232Device
{
public:
TestDevice() :
LedRs232Device("/dev/ttyAMA0", 2000000)
{
// empty
}
int write(const std::vector<ColorRgb> &ledValues) { return 0; }
int switchOff() { return 0; };
void writeTestSequence()
{
uint8_t data = 'T';
writeBytes(1, &data);
}
};
int main()
{
TestDevice device;
device.writeTestSequence();
return 0;
}