AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

board/Buzzer.h

Committer:
sillevl
Date:
2017-02-09
Revision:
27:f29805113454
Parent:
11:50572814f73e

File content as of revision 27:f29805113454:

#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