forked from Sepanta/console-emulator
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
445 B
26 lines
445 B
#ifndef RotaryButton_H
|
|
#define RotaryButton_H
|
|
|
|
#define PROTOCOL_LENGTH 8
|
|
#define MESSAGE_DIRECTION 0x00
|
|
#define ROTARY_DATA_LENGTH 0X02
|
|
#define ROTARY_TYPE 0x05
|
|
#define TIME_TAG 0x00
|
|
|
|
#include "Led.h"
|
|
|
|
class RotaryButton
|
|
{
|
|
private:
|
|
char _functionCode;
|
|
Led _led;
|
|
|
|
public:
|
|
RotaryButton(char functionCode);
|
|
RotaryButton(char functionCode, char ledFunctionCode);
|
|
|
|
Led* getLed();
|
|
QByteArray rotate(int value);
|
|
};
|
|
|
|
#endif //RotaryButton_H
|
|
|