Dependencies:   beep mbed

Files at this revision

API Documentation at this revision

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;