A small portable device featuring timer, clock, and calendar functions, equipped with a simple and functional interface and a truly long battery life.
This software approach uses both external and timer interrupt. Buttons are initialized as GPIO_EXTI. Remember PA8 and PC8 will be interpreted by CPU as the same interrupt source. From datasheet read ...