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/?a=commitdiff_plain;h=e8dc3448b547f715e33f62ae690a9408b4e90a70;hp=7113aed0018e08706cf5fbfeb58a96ba87a84ef4;p=protos%2Frc_servos.git 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;