hyperion.ng/test/TestRs232HighSpeed.cpp
johan 78795b9fa8 New XBMC checker functionality: 3D video detection (filename based) and screensaver detection
Former-commit-id: ea95e4ecde3ab9378bdf9c4c60950713947bd0ac
2013-12-21 14:32:30 +01:00

33 lines
455 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;
}