0
Dependents: Micro_music_box_2 Mic_music_box
buzzer.h
- Committer:
- valentino14
- Date:
- 2022-02-24
- Revision:
- 1:49ed31a8efea
- Parent:
- 0:f37201b09807
File content as of revision 1:49ed31a8efea:
#ifndef MBED_BEEP_H #define MBED_BEEP_H #include "mbed.h" //zaglavna datoteka namespace mbed { //Klasa koja daje funkcije za mjenjanje frekvencije i vremena trajanja tona class Beep { public: Beep (PinName pin); void beep (float frequency, float time); void nobeep(); private : PwmOut _pwm; Timeout toff; }; } #endif