![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Code for the keypad
Dependencies: TextLCD keypad mbed-rtos mbed
Diff: buzzer/buzzer.h
- Revision:
- 0:f39f0de7c0ce
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/buzzer/buzzer.h Mon May 08 19:57:56 2017 +0000 @@ -0,0 +1,17 @@ +#ifndef BUZZER_H +#define BUZZER_H + +#include "mbed.h" + +class Buzzer{ + + public: + Buzzer(PinName buzzerPin); + void playNote(float frequency, float duration = 100, float volume = 1.0); + void startupBeep(); + + private: + PwmOut out; +}; + +#endif \ No newline at end of file