git.droids-corp.org
/
protos
/
rc_servos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7113aed
)
use pullup for input to avoid noise
author
Olivier Matz
<zer0@droids-corp.org>
Thu, 3 Oct 2013 18:08:24 +0000
(20:08 +0200)
committer
Olivier Matz
<zer0@droids-corp.org>
Thu, 3 Oct 2013 18:11:42 +0000
(20:11 +0200)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
5849b8b
..
3509874
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-160,6
+160,9
@@
int main(void)
uint8_t t, diff;
uint8_t tmp;
uint8_t t, diff;
uint8_t tmp;
+ /* use pull-up for inputs */
+ PORTC |= 0x3f;
+
/* LED */
DDRB = 0x02;
/* LED */
DDRB = 0x02;