feat: mapy bitowe z svg, dodanie potwierdzania akcji, reset urządzenia

This commit is contained in:
2026-06-07 13:55:20 +02:00
parent a7ed8f6cdd
commit 997fd3e563
15 changed files with 1027 additions and 467 deletions
+4 -2
View File
@@ -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];