Replace arduino-timer with PositionWatcher
This commit is contained in:
33
lib/shade_command/ShadeCommand.h
Normal file
33
lib/shade_command/ShadeCommand.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef SHADE_COMMAND_H
|
||||
#define SHADE_COMMAND_H
|
||||
|
||||
#include <variant>
|
||||
#include <stdint.h>
|
||||
#include <typeindex>
|
||||
|
||||
struct OpenCommand {
|
||||
uint16_t shadeID;
|
||||
};
|
||||
|
||||
struct CloseCommand {
|
||||
uint16_t shadeID;
|
||||
};
|
||||
|
||||
struct StopCommand {
|
||||
uint16_t shadeID;
|
||||
};
|
||||
|
||||
struct SetPositionCommand {
|
||||
uint16_t shadeID;
|
||||
float percentage;
|
||||
};
|
||||
|
||||
struct RefreshCommand {
|
||||
uint16_t shadeID;
|
||||
};
|
||||
|
||||
|
||||
using ShadeCommand = std::variant<OpenCommand, CloseCommand, StopCommand, SetPositionCommand, RefreshCommand>;
|
||||
|
||||
|
||||
#endif // SHADE_COMMAND_H
|
||||
Reference in New Issue
Block a user