forked from Sepanta/console-emulator
33 lines
454 B
33 lines
454 B
#ifndef LED_H
|
|
#define LED_H
|
|
|
|
#define LedOFF 0x00
|
|
#define LedColorWhite 0x01
|
|
#define LedColorGreen 0x02
|
|
#define FunctionCode 3
|
|
#define LedColor 4
|
|
|
|
#include <QObject>
|
|
|
|
#include "Logger.h"
|
|
|
|
class Led : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
private:
|
|
char _functionCode;
|
|
bool _hasLed;
|
|
|
|
public:
|
|
Led();
|
|
Led(char functionCode);
|
|
|
|
signals:
|
|
void ledChanged(char value);
|
|
|
|
public slots:
|
|
void newData(QByteArray data, Logger* log);
|
|
};
|
|
|
|
#endif //LED_H
|
|
|