AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
Buzzer.h
00001 #ifndef BUZZER_H 00002 #define BUZZER_H 00003 00004 #include "mbed.h" 00005 00006 class Buzzer{ 00007 00008 public: 00009 Buzzer(PinName buzzerPin); 00010 void playNote(float frequency, float duration = 100, float volume = 1.0); 00011 void startupBeep(); 00012 00013 private: 00014 00015 00016 PwmOut out; 00017 }; 00018 00019 #endif
Generated on Tue Jul 12 2022 21:04:09 by 1.7.2