Working PIR sensor
Revision 1:f6f524d2dc18, committed 2019-01-31
- Comitter:
- vazbyte
- Date:
- Thu Jan 31 17:19:30 2019 +0000
- Parent:
- 0:61201dd6e178
- Child:
- 2:7844d0880ba7
- Commit message:
- working though slowly
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Mar 05 23:08:46 2015 +0000
+++ b/main.cpp Thu Jan 31 17:19:30 2019 +0000
@@ -1,8 +1,8 @@
#include "mbed.h"
-
+
DigitalOut led1(LED1);
-DigitalIn alarm(p29, PullUp); //internal pull up
-
+DigitalIn alarm(p29, PullNone); //internal pull up
+
int main() {
wait(2); //Wait for sensor to take snap shot of still room