add vibe config

This commit is contained in:
sharandac
2020-08-11 08:40:12 +02:00
parent 20d2daefce
commit e5cda949ac
9 changed files with 503 additions and 32 deletions

View File

@@ -24,6 +24,12 @@
#include "TTGO.h"
#define MOTOR_CONFIG_FILE "/motor.cfg"
typedef struct {
bool vibe = true;
} motor_config_t;
/*
* @ brief setup motor I/O
*/
@@ -33,5 +39,9 @@
* @param time time in 10ms
*/
void motor_vibe( int time );
bool motor_get_vibe_config( void );
void motor_set_vibe_config( bool enable );
void motor_save_config( void );
void motor_read_config( void );
#endif // _MOTOR_H