add accelerometer interrupt counter
This commit is contained in:
@@ -89,6 +89,7 @@ static void _lis2dw_logging_face_update_display(movement_settings_t *settings, l
|
||||
logger_state->interrupts[2]);
|
||||
}
|
||||
watch_display_string(buf, 0);
|
||||
printf("%s\n", buf);
|
||||
}
|
||||
|
||||
static void _lis2dw_logging_face_log_data(lis2dw_logger_state_t *logger_state) {
|
||||
@@ -137,7 +138,7 @@ void lis2dw_logging_face_activate(movement_settings_t *settings, void *context)
|
||||
|
||||
logger_state->display_index = 0;
|
||||
logger_state->log_ticks = 0;
|
||||
watch_enable_digital_input(A0);
|
||||
watch_enable_digital_input(A4);
|
||||
}
|
||||
|
||||
bool lis2dw_logging_face_loop(movement_event_t event, movement_settings_t *settings, void *context) {
|
||||
@@ -191,7 +192,7 @@ bool lis2dw_logging_face_loop(movement_event_t event, movement_settings_t *setti
|
||||
void lis2dw_logging_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
(void) context;
|
||||
watch_disable_digital_input(A0);
|
||||
watch_disable_digital_input(A4);
|
||||
}
|
||||
|
||||
bool lis2dw_logging_face_wants_background_task(movement_settings_t *settings, void *context) {
|
||||
|
||||
Reference in New Issue
Block a user