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