From b9dfba3067ffeea9a7ad0ba1b388da26c66d60fa Mon Sep 17 00:00:00 2001 From: Mike S Date: Tue, 28 Jan 2014 21:54:25 -0700 Subject: [PATCH] added comments to Ocarina Code --- Firmware/Ocarina/Ocarina.ino | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Firmware/Ocarina/Ocarina.ino b/Firmware/Ocarina/Ocarina.ino index 0ba61ff..e2c5539 100644 --- a/Firmware/Ocarina/Ocarina.ino +++ b/Firmware/Ocarina/Ocarina.ino @@ -1,8 +1,14 @@ /* Make the Simon Says Game a 4-hole Ocarina (Like in the legend of zelda) +Prof Mike Soltys +University of Colorado +1/28/2014 */ -// Define the button, LED, and buzzer pins + + +// Define the button, LED, and buzzer pins (this is standard for all Simon Says games +// I've labeled mine UL for Upper Left, LR for Lower Left and so on. const int led_UL = 10; //Red const int led_UR = 3; //Green const int led_LL = 13; //Blue @@ -100,6 +106,7 @@ void loop() { digitalWrite(led_LR, HIGH); tone(BUZZER2,523,50); } + // Turn off all LEDs digitalWrite(led_UR, LOW); digitalWrite(led_UL, LOW);