#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