doxygen: Added documentation to Buzzer sensor

Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com>
This commit is contained in:
Kiveisha Yevgeniy
2014-06-10 06:54:45 +00:00
parent 864306acf5
commit 236cc9acc1
2 changed files with 31 additions and 1 deletions

View File

@ -43,6 +43,8 @@ sig_handler(int signo)
int
main(int argc, char **argv) {
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
@ -57,10 +59,11 @@ main(int argc, char **argv) {
usleep(1000);
}
}
//! [Interesting]
std::cout << "exiting application" << std::endl;
delete sound;
return 0;
}