Simulacija rada semafora s 4 LED diode, 7 segmentog display-a, zvučnika, tipkala i potenciometra
Dependencies: mbed
Diff: buzzer.h
- Revision:
- 0:2531c2b824f9
- Child:
- 1:1b7ec94fe4ab
diff -r 000000000000 -r 2531c2b824f9 buzzer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/buzzer.h Thu May 06 18:55:48 2021 +0000 @@ -0,0 +1,16 @@ +// SegDisplay.h file for Exercise 24 +#ifndef BUZZER_H +#define BUZZER_H +#include "mbed.h" + +class Buzz +{ +public: + Buzz (PinName pin); + void buzz (); + void buzzOff(); +private : + PwmOut _pwm; +}; + +#endif \ No newline at end of file