Merge branch 'as5600'
This commit is contained in:
@@ -1,30 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "ADS1X15.h"
|
||||
#include "Battery.h"
|
||||
#include "board.h"
|
||||
#include "led.h"
|
||||
#include "AS5600.h"
|
||||
#include "Wire.h"
|
||||
#include "audio.h"
|
||||
|
||||
#define ADSINTERVAL 100
|
||||
#define VBATTINTERVALL 15000
|
||||
#define VBATTMEASPRECHARGE 500
|
||||
#define LOWBATTPERIOD 30000
|
||||
#define ADSINTERVAL 100
|
||||
#define VBATTINTERVALL 15000
|
||||
#define VBATTMEASPRECHARGE 500
|
||||
#define LOWBATTPERIOD 30000
|
||||
|
||||
#define HALLINTERVAL 100
|
||||
#define HALLTHRESHOLD 5
|
||||
#define HALLIDLETHRESHOLD 10
|
||||
#define HALLIDLESAMPLES 15
|
||||
#define HALLPLAYSAMPLES 24
|
||||
|
||||
typedef enum
|
||||
{
|
||||
hall_idle,
|
||||
hall_increasing,
|
||||
hall_tipover,
|
||||
hall_decreasing,
|
||||
hall_tipunder,
|
||||
HALL_LAST
|
||||
}HALLSENSORSTATES;
|
||||
|
||||
static String HALLSENESORSTATES_ENUM2STR[HALL_LAST]
|
||||
{
|
||||
@@ -39,7 +30,6 @@ void initSensor(void);
|
||||
void handleBatterySensor(void);
|
||||
void handleHallSensor(void);
|
||||
|
||||
|
||||
uint16_t getHall( void );
|
||||
bool hallIsIdle(void);
|
||||
uint16_t getvbatt(uint8_t dummy);
|
||||
@@ -47,5 +37,7 @@ bool getSensorInitStatus(void);
|
||||
|
||||
bool CheckBattery(void);
|
||||
bool getLowBatt(void);
|
||||
void readsensor(void);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user