0

Dependents:   Micro_music_box_2 Mic_music_box

Committer:
valentino14
Date:
Thu Feb 24 14:50:05 2022 +0000
Revision:
0:f37201b09807
Child:
1:49ed31a8efea
01

Who changed what in which revision?

UserRevisionLine numberNew contents of line
valentino14 0:f37201b09807 1 #ifndef MBED_BEEP_H
valentino14 0:f37201b09807 2 #define MBED_BEEP_H
valentino14 0:f37201b09807 3
valentino14 0:f37201b09807 4 #include "mbed.h"
valentino14 0:f37201b09807 5
valentino14 0:f37201b09807 6 //zaglavna datoteka
valentino14 0:f37201b09807 7
valentino14 0:f37201b09807 8 namespace mbed
valentino14 0:f37201b09807 9 {
valentino14 0:f37201b09807 10 //Klasa koja daje funkcije za mjenjanje frekvencije i vremena trajanja tona
valentino14 0:f37201b09807 11 class Beep {
valentino14 0:f37201b09807 12
valentino14 0:f37201b09807 13 public:
valentino14 0:f37201b09807 14
valentino14 0:f37201b09807 15 Beep (PinName pin);
valentino14 0:f37201b09807 16 void beep (float frequency, float time);
valentino14 0:f37201b09807 17 void nobeep();
valentino14 0:f37201b09807 18
valentino14 0:f37201b09807 19 private :
valentino14 0:f37201b09807 20 PwmOut _pwm;
valentino14 0:f37201b09807 21 Timeout toff;
valentino14 0:f37201b09807 22 };
valentino14 0:f37201b09807 23
valentino14 0:f37201b09807 24 }
valentino14 0:f37201b09807 25 #endif