more feature

This commit is contained in:
sharandac
2020-07-09 16:43:48 +02:00
parent dbe29b31b1
commit 8ac776e670
49 changed files with 1638 additions and 442 deletions

24
src/hardware/bma.h Normal file
View 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