feat: mapy bitowe z svg, dodanie potwierdzania akcji, reset urządzenia
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "BuddyTypes.h"
|
||||
|
||||
static const uint8_t NUM_GESTURES = 9;
|
||||
static const uint8_t NUM_ACTIONS = 7;
|
||||
static const uint8_t NUM_ACTIONS = 8;
|
||||
|
||||
enum Action : uint8_t {
|
||||
ACTION_NONE = 0,
|
||||
@@ -12,7 +12,8 @@ enum Action : uint8_t {
|
||||
ACTION_FEED = 3,
|
||||
ACTION_PLAY = 4,
|
||||
ACTION_CLEAN = 5,
|
||||
ACTION_STATUS = 6
|
||||
ACTION_STATUS = 6,
|
||||
ACTION_RESTART = 7
|
||||
};
|
||||
|
||||
struct GestureConfig {
|
||||
@@ -20,6 +21,7 @@ struct GestureConfig {
|
||||
uint8_t mood; // 0 = no change, 1-11 matches Mood enum
|
||||
uint8_t action; // Action enum
|
||||
bool enabled;
|
||||
bool confirm; // require OLED confirmation before firing webhook/action
|
||||
};
|
||||
|
||||
extern const char *GNAME[NUM_GESTURES];
|
||||
|
||||
Reference in New Issue
Block a user