diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2021-11-29 14:53:13 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2021-11-29 14:54:13 -0500 |
commit | 0fb8afda813ffbe96072ceb09292c8ae0d490b59 (patch) | |
tree | a5ef02898cbb37fee60a1fab71a5a650b06bed8b /movement/movement.h | |
parent | 7529866267dfabdeab495dc17a17f09430848d45 (diff) | |
download | Sensor-Watch-0fb8afda813ffbe96072ceb09292c8ae0d490b59.tar.gz Sensor-Watch-0fb8afda813ffbe96072ceb09292c8ae0d490b59.tar.bz2 Sensor-Watch-0fb8afda813ffbe96072ceb09292c8ae0d490b59.zip |
movement: add alarm and signal functions
Diffstat (limited to 'movement/movement.h')
-rw-r--r-- | movement/movement.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/movement/movement.h b/movement/movement.h index 2e7630b2..9fa540ca 100644 --- a/movement/movement.h +++ b/movement/movement.h @@ -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_ |