From e8dc3448b547f715e33f62ae690a9408b4e90a70 Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 3 Oct 2013 20:08:24 +0200 Subject: [PATCH] use pullup for input to avoid noise --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 5849b8b..3509874 100644 --- a/main.c +++ b/main.c @@ -160,6 +160,9 @@ int main(void) uint8_t t, diff; uint8_t tmp; + /* use pull-up for inputs */ + PORTC |= 0x3f; + /* LED */ DDRB = 0x02; -- 2.39.5