From 1946488587284bf2583cb7acfb765c2aee60bc3e Mon Sep 17 00:00:00 2001 From: Rutherther Date: Thu, 28 Nov 2024 15:44:12 +0100 Subject: [PATCH] fix(arm03): .. --- arm03/src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arm03/src/main.c b/arm03/src/main.c index 0746f2e..8a89353 100644 --- a/arm03/src/main.c +++ b/arm03/src/main.c @@ -105,7 +105,7 @@ void main() exti_enable_interrupt(&startstop_exti); pin_init(&startstop_button, GPIOB, 0); - pin_into_output_pushpull(&startstop_button); + pin_into_input(&startstop_button); pin_speed(&startstop_button, LOW_SPEED); { @@ -129,7 +129,7 @@ void main() timer_configure(&stopwatch_timer, 0, 60000, 0); timer_set_refresh(&stopwatch_timer, 10000*4); - timer_init(&startstop_debounce_timer, TIM4, 2); + timer_init(&startstop_debounce_timer, TIM4, 4); timer_configure(&startstop_debounce_timer, 0, 60000, 1); timer_set_refresh(&startstop_debounce_timer, 10); timer_enable_interrupt(&startstop_debounce_timer); @@ -148,7 +148,7 @@ void main() display_enable_digit(&display, 0, (count % display.max_value) >= 1000); - display_number_set(&display, count); + display_convert_number(&display, count); /* DELAY_US(100); */ } -- 2.48.1