From 709a46d324507ae1a78ebda8e9caaa5d962f111e Mon Sep 17 00:00:00 2001 From: MadTooler Date: Fri, 26 Oct 2018 00:25:34 -0500 Subject: [PATCH] Delete beeps.ino --- .../Level_2/GLC_IRcontrol_Mode5c/beeps.ino | 80 ------------------- 1 file changed, 80 deletions(-) delete mode 100644 examples/ScoutBotics/Level_2/GLC_IRcontrol_Mode5c/beeps.ino diff --git a/examples/ScoutBotics/Level_2/GLC_IRcontrol_Mode5c/beeps.ino b/examples/ScoutBotics/Level_2/GLC_IRcontrol_Mode5c/beeps.ino deleted file mode 100644 index 6c58675..0000000 --- a/examples/ScoutBotics/Level_2/GLC_IRcontrol_Mode5c/beeps.ino +++ /dev/null @@ -1,80 +0,0 @@ -//**** confirm comments and order - - // varying beeps to signal: - // button press recognized - // cancel within a command - // back at main mode select - // mode entered - // center veer position if adjusting back and forth - // cancel a step - // end of program - - -// main beeper function that does not use any additional timers -void cheapBeep(int beepTime) { - // with 500 microseconds up and down, = 1000 microsends = 1 millisecond per pulse = 1000 hertz - for (int i = 0; i < beepTime; i++) { - digitalWrite(PIEZO_PIN, HIGH); - delayMicroseconds(500); - digitalWrite(PIEZO_PIN, LOW); - delayMicroseconds(500); - } -} - - - -void cancelSubBeep(void){ - for (int i = 0; i < 3; i++) { - cheapBeep(40); - delay(40); - } -} - - - -void cancelStepBeep(void){ - for (int i = 0; i < 10; i++) { - cheapBeep(40); - delay(40); - } -} - - - -void mainMenuBeep(void){ - cheapBeep(400); -} - - - -void stepRecordedBeep(void){ - cheapBeep(200); - delay(100); - cheapBeep(200); -} - - - -void playBackDoneBeep(void){ - cheapBeep(40); - delay(170); - cheapBeep(40); - delay(40); - cheapBeep(40); - delay(40); - cheapBeep(40); - delay(170); - cheapBeep(40); -} - - - -void modeStartedBeep(void){ - cheapBeep(100); - delay(170); - cheapBeep(40); - delay(40); - cheapBeep(40); - delay(170); - cheapBeep(100); -}