@@ 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); */
}