It begins

Dependencies:   SDFileSystem mbed-rtos mbed wave_player

Fork of BAT_senior_design by BAT

Revision:
9:418a4437a693
Parent:
6:1aa86ad19af9
diff -r 68d448b3c389 -r 418a4437a693 functions.cpp
--- a/functions.cpp	Fri Oct 13 15:44:04 2017 +0000
+++ b/functions.cpp	Fri Oct 13 15:48:24 2017 +0000
@@ -1,31 +0,0 @@
-#include "wave_player.h"
-#include "SDFileSystem.h"
-
-void moveServoIn(PwmOut servo, DigitalIn pb)
-{
-    while(pb == 1)
-        //myled = 1;
-        // rotate 90 degrees one way
-        for(int i=3; i<=7; i++) {
-            servo = i/100.0;
-            wait(0.01);
-        }
-}
-
-void moveServoOut(PwmOut servo, DigitalIn pb)
-{
-    while(pb == 1)
-        //myled = 0;
-        for(int i=7; i>3; i--) {
-            servo = i/100.0;
-            wait(0.01);
-        }
-}
-
-void playSound(wave_player waver)
-{
-    FILE *wave_file;
-    wave_file=fopen("/sd/police_siren.wav","r");
-    waver.play(wave_file);
-    fclose(wave_file);
-}
\ No newline at end of file