From 20d86bf1e3dfdfb4c0a3ea557b54f0bea0f5c214 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 8 Feb 2026 16:18:49 +0530 Subject: Handle button state --- src/display.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/display.c') diff --git a/src/display.c b/src/display.c index 8de5043..7781b7e 100644 --- a/src/display.c +++ b/src/display.c @@ -3,6 +3,7 @@ #include #include +#include "button.h" #include "display.h" #include "rtc.h" @@ -38,8 +39,12 @@ volatile uint8_t current_digit = 0; // Render current digit void display_render(void) { + button_tick(); // Check button click + DDRA |= 0b11111111; DDRB |= 0b11111111; + PORTA = 0b01111111; + PORTB = 0b00000000; write_time(minutes, seconds, current_digit); -- cgit v1.3.1