Send a beep to a speaker

Dependencies:   mbed

Revision:
0:c2090cf6119d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/beep.h	Sun Jan 22 19:14:30 2017 +0000
@@ -0,0 +1,9 @@
+#ifndef BEEP_H
+#define BEEP_H
+
+DigitalOut speaker(p20);
+DigitalIn button(p18);
+
+void play_sound(DigitalOut& out, float delay);
+
+#endif
\ No newline at end of file