mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
78795b9fa8
Former-commit-id: ea95e4ecde3ab9378bdf9c4c60950713947bd0ac
33 lines
455 B
C++
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;
|
|
}
|