movement: add alarm and signal functions

This commit is contained in:
Joey Castillo
2021-11-29 14:53:13 -05:00
parent 7529866267
commit 0fb8afda81
2 changed files with 46 additions and 4 deletions

View File

@@ -215,7 +215,11 @@ typedef struct {
// LED stuff
int16_t light_ticks;
// alarm stuff
int16_t alarm_ticks;
bool is_buzzing;
// button tracking for long press
uint8_t light_down_timestamp;
uint8_t mode_down_timestamp;
@@ -241,4 +245,7 @@ void movement_move_to_next_face();
void movement_illuminate_led();
void movement_request_tick_frequency(uint8_t freq);
void movement_play_signal();
void movement_play_alarm();
#endif // MOVEMENT_H_