From 02829cf43d83a7d287294944fb5b37e82a2457a9 Mon Sep 17 00:00:00 2001 From: Sarah Knepper Date: Tue, 20 Jan 2015 14:34:50 -0800 Subject: [PATCH] buzzer: Modify comments in C++ example Signed-off-by: Sarah Knepper --- examples/buzzer-sound.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/buzzer-sound.cxx b/examples/buzzer-sound.cxx index 9d88b9fc..1d377bac 100644 --- a/examples/buzzer-sound.cxx +++ b/examples/buzzer-sound.cxx @@ -30,17 +30,17 @@ int main(int argc, char **argv) { + //! [Interesting] int chord[] = { DO, RE, MI, FA, SOL, LA, SI, DO, SI }; - //! [Interesting] // create Buzzer instance upm::Buzzer* sound = new upm::Buzzer(5); // print sensor name std::cout << sound->name() << std::endl; - // play sound (DO, RE, ME, etc...) + // play sound (DO, RE, MI, etc...), pausing for 0.1 seconds between notes for (int chord_ind = 0; chord_ind < 7; chord_ind++) { - // play one second for each chord + // play each note for one second std::cout << sound->playSound(chord[chord_ind], 1000000) << std::endl; usleep(100000); }