PIR sensor for White Wizard Board (PAT.PEND). Base Board Ditail : http://wizard.nestegg.jp/ Sensor module Detail : http://wizard.nestegg.jp/pir.html
Diff: main.cpp
- Revision:
- 0:276797a4f4c3
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