added as5600 sensor readout
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include "Battery.h"
|
||||
#include "board.h"
|
||||
#include "led.h"
|
||||
#include "AS5600.h"
|
||||
#include "Wire.h"
|
||||
|
||||
#define ADSINTERVAL 100
|
||||
#define VBATTINTERVALL 15000
|
||||
@@ -16,6 +18,7 @@
|
||||
#define HALLIDLETHRESHOLD 20
|
||||
#define HALLIDLESAMPLES 15
|
||||
#define HALLPLAYSAMPLES 24
|
||||
#define HALLTHRESHOLD 5
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@@ -38,5 +41,7 @@ bool getSensorInitStatus(void);
|
||||
|
||||
bool CheckBattery(void);
|
||||
bool getLowBatt(void);
|
||||
void readsensor(void);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user