Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
play_buzzer.h
- Committer:
- math991e
- Date:
- 2019-01-10
- Revision:
- 0:e44696c93c6b
- Child:
- 1:50204a498764
File content as of revision 0:e44696c93c6b:
#ifndef MBED_BEEP_H
#define MBED_BEEP_H
#include "mbed.h"
namespace mbed {
class play_buzzer {
private :
PinName _pin;
PwmOut _pwm;
Timeout toff;
public:
play_buzzer(PinName);
void beep (float frequency, int time);
void nobeep();
void Play_tunes(int notes, int tones);
int play();
void setPin(PinName pin);
PinName getPin();
};
};
#endif