FRDM-K64F Code Share
/
Pir
Revision 1:f3758be6979d, committed 2014-08-08
- Comitter:
- lauram
- Date:
- Fri Aug 08 01:40:17 2014 +0000
- Parent:
- 0:d010569706bd
- Commit message:
- starting
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r d010569706bd -r f3758be6979d main.cpp --- a/main.cpp Wed Aug 06 21:14:22 2014 +0000 +++ b/main.cpp Fri Aug 08 01:40:17 2014 +0000 @@ -2,9 +2,15 @@ #include "beep.h" Serial PC(USBTX, USBRX); + +//Sensor InterruptIn pir(D5); + +//Buttons InterruptIn on(D7); InterruptIn off(D6); + +//Buzzer Beep buzzer(D9); int flagOn,flagOff,flagPIR=0;