Skip to content

Commit 9688a21

Browse files
committed
pbio/sys/hmi_ev3: Allow pausing credits.
Hold the center button to pause at your name.
1 parent ba4b039 commit 9688a21

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/pbio/sys/hmi_ev3_ui.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ pbio_error_t pbsys_hmi_ev3_ui_closing_credits(pbio_os_state_t *state, void *cont
611611
// Show the page.
612612
pbdrv_display_update();
613613
PBIO_OS_AWAIT_MS(state, &timer, 1000);
614+
PBIO_OS_AWAIT_WHILE(state, pbdrv_button_get_pressed() & PBIO_BUTTON_CENTER);
614615
}
615616

616617
// Display creator info.
@@ -629,6 +630,7 @@ pbio_error_t pbsys_hmi_ev3_ui_closing_credits(pbio_os_state_t *state, void *cont
629630
pbio_image_draw_image_transparent_from_monochrome(display, &pbio_image_media_pybricks_join, 31, 6, BLACK);
630631
pbdrv_display_update();
631632
PBIO_OS_AWAIT_MS(state, &timer, 1500);
633+
PBIO_OS_AWAIT_WHILE(state, pbdrv_button_get_pressed() & PBIO_BUTTON_CENTER);
632634
pbio_image_fill(display, WHITE);
633635
pbsys_hmi_ev3_ui_draw_pybricks_logo(12, 12, 154, false);
634636
pbsys_hmi_ev3_ui_draw_centered_text(&pbio_font_terminus_normal_16, "Thanks for your help!", 0, 114);

0 commit comments

Comments
 (0)