firmware updates

This commit is contained in:
2022-12-31 11:04:47 +01:00
parent c6e9e8b0ba
commit c075d1a812
7 changed files with 176 additions and 78 deletions

View File

@@ -12,7 +12,7 @@
#define HALLINTERVAL 100
#define HALLTHRESHOLD 5
#define HALLIDLETHRESHOLD 20
#define HALLIDLETHRESHOLD 10
#define HALLIDLESAMPLES 15
#define HALLPLAYSAMPLES 24
@@ -22,8 +22,19 @@ typedef enum
hall_increasing,
hall_tipover,
hall_decreasing,
hall_tipunder,
HALL_LAST
}HALLSENSORSTATES;
static String HALLSENESORSTATES_ENUM2STR[HALL_LAST]
{
"Hall Idle",
"Hall Increasing",
"Hall Tipover",
"Hall decreasing",
"Hall tipUnder"
};
void initSensor(void);
void handleBatterySensor(void);
void handleHallSensor(void);