terry LAI / Mbed 2 deprecated ESDC2014-pwm

Dependencies:   mbed

Fork of ESDC2014 by terry LAI

Revision:
6:7ab57721c0fb
Parent:
5:098e6a44bd94
--- a/buzzer.h	Fri Jul 04 16:08:29 2014 +0000
+++ b/buzzer.h	Mon Jul 07 06:10:11 2014 +0000
@@ -32,6 +32,9 @@
 #include "define.h"
 #include "mbed.h"
 
+#define BUZZER_TARGET_NOT_FOUND 0x01
+#define BUZZER_TAKE_PHOTO 0x02
+
 #define TIME_OUT 20 //8 seconds
 
 class Buzzer
@@ -47,10 +50,15 @@
     void check_time_out();
     void time_out_init();
     
+    void notice(uint8_t type);
+    void target_not_found();
+    void take_photo();
 private:
     MyDigitalOut* _buzzer; 
     uint8_t flag;
     Timeout time_out;
+    
+    void boot();
 };
 
 #endif
\ No newline at end of file