C++ API for Buzzer component.
More...
This file defines the Buzzer C++ interface for libbuzzer
std::cout << sound->
name() << std::endl;
for (int chord_ind = 0; chord_ind < 7; chord_ind++) {
std::cout << sound->
playSound(chord[chord_ind], 1000000) << std::endl;
usleep(100000);
}
Instanciates a Buzzer object
- Parameters
-
int playSound |
( |
int |
note, |
|
|
int |
delay |
|
) |
| |
Play chords.
- Parameters
-
note | chords (DO, RE, ME, etc...) |
delay | time in microsec for playing the sound |
Return name of the component
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/upm-doc/src/buzzer/buzzer.h
- /var/lib/jenkins/workspace/upm-doc/src/buzzer/buzzer.cxx