PIR sensor for White Wizard Board (PAT.PEND). Base Board Ditail : http://wizard.nestegg.jp/ Sensor module Detail : http://wizard.nestegg.jp/pir.html

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
halfpitch
Date:
Wed Jul 06 11:34:35 2011 +0000
Commit message:
Rev.A

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 276797a4f4c3 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Jul 06 11:34:35 2011 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+DigitalIn PIR(p20);
+DigitalOut checkLED(LED1);
+
+
+int main() {
+    while(1) {
+        checkLED = 0;
+        if(PIR == 1) {
+            checkLED = 1;
+        }
+        wait(0.25);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 276797a4f4c3 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Jul 06 11:34:35 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/63bcd7ba4912