Utilities classes for the Zumo Robot

Dependents:   ZumoRobotBluetoothControlled Fsl_Zumo

This library represents some useful code for controlling your Zumo Robot.

Revision:
4:dcd52a961392
Child:
6:7740c9d8d834
diff -r b1fde0759c94 -r dcd52a961392 Buzzer.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Buzzer.h	Thu Nov 27 16:08:05 2014 +0000
@@ -0,0 +1,24 @@
+// Craciun Catalin
+//  Buzzer.h
+//   © 2014 Catalin Craciun
+
+#ifndef BuzzerH
+#define BuzzerH
+
+#include "mbed.h"
+
+class Buzzer {
+    public:
+        // Public methods and properties
+        Buzzer(PinName buzzerPinName);
+        ~Buzzer();
+        void stopBeep();
+        void startBeep(float frequency, float duration);
+
+    private:
+        // Private methods and properties   
+        PwmOut buzzerPin;
+        Timeout timeout;
+};
+
+#endif // BuzzerH
\ No newline at end of file