29 #define DO 3800 // 262 Hz - C4
30 #define RE 3400 // 294 Hz - D
31 #define MI 3000 // 330 Hz - E
32 #define FA 2900 // 349 Hz - F
33 #define SOL 2550 // 392 Hz - G
34 #define LA 2270 // 440 Hz - A
35 #define SI 2000 // 494 Hz - B
124 mraa_pwm_context m_pwm_context;
Buzzer(int pinNumber)
Definition: buzzer.cxx:35
~Buzzer()
Definition: buzzer.cxx:72
std::string name()
Definition: buzzer.hpp:117
void stopSound()
Definition: buzzer.cxx:66
int playSound(int note, int delay)
Definition: buzzer.cxx:56
API for the Buzzer component.
Definition: buzzer.hpp:65
void setVolume(float vol)
Definition: buzzer.cxx:48
float getVolume()
Definition: buzzer.cxx:52