Removed most of the comments

Dependents:   Hodak_MorseCoder LED_BOZICNE_LAMPICE

buzzer.h

Committer:
khodak
Date:
2020-11-19
Revision:
2:857083873b09
Parent:
1:622b1d533a1c

File content as of revision 2:857083873b09:

#ifndef MBED_BEEP_H
#define MBED_BEEP_H
 
#include "mbed.h"

namespace mbed {
 
/* Class: Beep
 *  A class which uses pwm to controle a beeper to generate sounds.
 */
class Beep {
 
public:
 
    Beep (PinName pin);//Specified PwmOut pin for buzzer
 
/** Beep with given frequency and duration.
 *
 * @param frequency - the frequency of the tone in Hz
 * @param time - the duration of the tone in seconds
 */
    void beep (float frequency, float time);
 
    void nobeep();
 
private :
    PwmOut _pwm;
    Timeout toff;
};
 
}
#endif