mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
e1a60e6944
Former-commit-id: 0d546241456c57117bc6c8535635a938f2ec81fa
33 lines
434 B
C++
33 lines
434 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) {}
|
|
int switchOff() {};
|
|
|
|
void writeTestSequence()
|
|
{
|
|
uint8_t data = 'T';
|
|
|
|
writeBytes(1, &data);
|
|
}
|
|
};
|
|
|
|
int main()
|
|
{
|
|
TestDevice device;
|
|
device.writeTestSequence();
|
|
|
|
return 0;
|
|
}
|