AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Buzzer.h Source File

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