From b69a3fed31040273a14fbf66f03b0ce5a1962262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Mon, 30 May 2016 01:45:09 +0200 Subject: [PATCH] removed some junk --- main.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/main.c b/main.c index a8dc262..50cf0c1 100644 --- a/main.c +++ b/main.c @@ -3,14 +3,15 @@ #include // interrupt vectors #include // delay functions -#include // C header for int types like uint8_t -#include // C header for the bool type +#include +#include // Include stuff from the library #include "lib/iopins.h" #include "lib/usart.h" #include "lib/debounce.h" +/* uppercase key names */ static const char names[] = { 'L', // 2 'U', // 3 @@ -25,6 +26,7 @@ static const char names[] = { 'Y', // 12 }; +/* nr of keys down */ uint8_t down = 0; static void pin_change_handler(uint8_t n, bool state) @@ -86,18 +88,9 @@ void main(void) { hw_init(); - - // globally enable interrupts (for the USART_RX handler) - //sei(); - //pin_up(9); - int cnt = 0; while (1) { _delay_ms(1); debo_tick(); - - if (cnt++ > 500) { - cnt = 0; - } } }