From: Olivier Matz Date: Thu, 3 Oct 2013 18:08:24 +0000 (+0200) Subject: use pullup for input to avoid noise X-Git-Url: http://git.droids-corp.org/?p=protos%2Frc_servos.git;a=commitdiff_plain;h=e8dc3448b547f715e33f62ae690a9408b4e90a70 use pullup for input to avoid noise --- 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;