projects
/
sensor-light.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7842a03
)
disable pull up/down - PIR signal too weak
author
Eugene Crosser
<crosser@average.org>
Mon, 19 Mar 2018 19:41:38 +0000
(20:41 +0100)
committer
Eugene Crosser
<crosser@average.org>
Mon, 19 Mar 2018 19:41:38 +0000
(20:41 +0100)
msp430/main.c
patch
|
blob
|
history
diff --git
a/msp430/main.c
b/msp430/main.c
index fa802dd68292ffb5ef9abbbbe17f1a744b02305c..53ee457adf1da057d276a1f2bf221a9700be1a14 100644
(file)
--- a/
msp430/main.c
+++ b/
msp430/main.c
@@
-58,7
+58,7
@@
int main(void)
P2DIR &= ~(BIT4|BIT5); // PIR Sensors
P2OUT &= ~(BIT4|BIT5); // Pull down
- P2REN
|= BIT4|BIT5; // Enable pull-down
+ P2REN
&= ~(BIT4|BIT5); // Disable pull
P2IES &= ~(BIT4|BIT5); // INT on Lo->Hi edge
P2IE |= BIT4|BIT5; // INT enable