extended config

This commit is contained in:
2023-04-16 21:21:05 +02:00
parent 1fde3347c8
commit 8b4c00bc7f
15 changed files with 119 additions and 61 deletions

View File

@@ -9,32 +9,18 @@
#include "Wire.h"
#include "audio.h"
#define ADSINTERVAL 300
#define ADSINTERVAL 100
#define VBATTINTERVALL 15000
#define VBATTMEASPRECHARGE 500
#define LOWBATTPERIOD 30000
#define HALLINTERVAL 100
// #define HALLCNTTHRESHOLD 20
// #define HALLIDLETHRESHOLD 20
// #define HALLIDLESAMPLES 15
// #define HALLPLAYSAMPLES 24
#define HALLTHRESHOLD 2
// typedef enum
// {
// hall_idle,
// hall_increasing,
// hall_tipover,
// hall_decreasing,
// }HALLSENSORSTATES;
#define HALLTHRESHOLD 5
void initSensor(void);
void handleBatterySensor(void);
void handleHallSensor(void);
uint16_t getHall( void );
bool hallIsIdle(void);
uint16_t getvbatt(uint8_t dummy);