more feature
This commit is contained in:
24
src/hardware/bma.h
Normal file
24
src/hardware/bma.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef _BMA_H
|
||||
#define _BMA_H
|
||||
|
||||
#define BMA_EVENT_INT _BV(0)
|
||||
|
||||
typedef struct {
|
||||
bool enable=true;
|
||||
} bma_config_t;
|
||||
|
||||
enum {
|
||||
BMA_STEPCOUNTER,
|
||||
BMA_DOUBLECLICK,
|
||||
BMA_CONFIG_NUM
|
||||
};
|
||||
|
||||
#define BMA_COFIG_FILE "/bma.cfg"
|
||||
|
||||
void bma_setup( TTGOClass *ttgo );
|
||||
void bma_loop( TTGOClass *ttgo );
|
||||
|
||||
bool bma_get_config( int config );
|
||||
void bma_set_config( int config, bool enable );
|
||||
|
||||
#endif // _BMA_H
|
||||
Reference in New Issue
Block a user