]> git.droids-corp.org - protos/rc_servos.git/commitdiff
use pullup for input to avoid noise
authorOlivier Matz <zer0@droids-corp.org>
Thu, 3 Oct 2013 18:08:24 +0000 (20:08 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 3 Oct 2013 18:11:42 +0000 (20:11 +0200)
main.c

diff --git a/main.c b/main.c
index 5849b8bfe4b73f5a952d35c22bb69a6f9d8535c3..35098746f4563207d3510a44a96dd3d00b59e417 100644 (file)
--- 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;