optimize totp face and add countdown

This commit is contained in:
Wesley Ellis
2021-11-23 21:32:43 -05:00
parent 653dd862b8
commit 121e6fd165
2 changed files with 35 additions and 84 deletions

View File

@@ -3,6 +3,13 @@
#include "movement.h"
typedef struct {
uint32_t timestamp;
uint8_t steps;
uint32_t current_code;
} totp_state_t;
void totp_face_setup(movement_settings_t *settings, void ** context_ptr);
void totp_face_activate(movement_settings_t *settings, void *context);
bool totp_face_loop(movement_event_t event, movement_settings_t *settings, void *context);
@@ -16,4 +23,4 @@ static const watch_face_t totp_face = {
NULL
};
#endif // TOTP_FACE_H_
#endif // TOTP_FACE_H_