31 lines
772 B
C
31 lines
772 B
C
#pragma once
|
|
#include <stdint.h>
|
|
#include "BuddyTypes.h"
|
|
|
|
static const uint8_t NUM_GESTURES = 9;
|
|
static const uint8_t NUM_ACTIONS = 7;
|
|
|
|
enum Action : uint8_t {
|
|
ACTION_NONE = 0,
|
|
ACTION_DATETIME = 1,
|
|
ACTION_WIFI = 2,
|
|
ACTION_FEED = 3,
|
|
ACTION_PLAY = 4,
|
|
ACTION_CLEAN = 5,
|
|
ACTION_STATUS = 6
|
|
};
|
|
|
|
struct GestureConfig {
|
|
char url[128];
|
|
uint8_t mood; // 0 = no change, 1-11 matches Mood enum
|
|
uint8_t action; // Action enum
|
|
bool enabled;
|
|
};
|
|
|
|
extern const char *GNAME[NUM_GESTURES];
|
|
extern const char *GKEY[NUM_GESTURES];
|
|
extern const char *MOOD_LABELS[];
|
|
extern const char *ACTION_LABELS[];
|
|
extern const Mood DEFAULT_MOOD[NUM_GESTURES];
|
|
extern const uint32_t DEFAULT_MOOD_DUR[NUM_GESTURES];
|