update game

This commit is contained in:
2021-12-14 16:27:15 +01:00
parent 6fdeb985e7
commit cce21d299a
18 changed files with 652 additions and 234 deletions

View File

@@ -7,9 +7,18 @@
#define VBATTINTERVALL 1000
#define VBATTMEASPRECHARGE 250
#define HALLINTERVAL 100
#define HALLIDLETHRESHOLD 4
#define HALLIDLESAMPLES 4
#define HALLPLAYSAMPLES 8
void initSensor(void);
void handleSensor(void);
void handleHallSensor(void);
uint16_t getHall( void );
uint16_t getvbatt( void );
bool hallIsIdle(void);
uint16_t getvbatt(uint8_t dummy);
bool getSensorInitStatus(void);