Simulacija rada semafora s 4 LED diode, 7 segmentog display-a, zvučnika, tipkala i potenciometra
Dependencies: mbed
buzzer.h@0:2531c2b824f9, 2021-05-06 (annotated)
- Committer:
- dcindric
- Date:
- Thu May 06 18:55:48 2021 +0000
- Revision:
- 0:2531c2b824f9
- Child:
- 1:1b7ec94fe4ab
Konstukcijski Cindric
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dcindric | 0:2531c2b824f9 | 1 | // SegDisplay.h file for Exercise 24 |
dcindric | 0:2531c2b824f9 | 2 | #ifndef BUZZER_H |
dcindric | 0:2531c2b824f9 | 3 | #define BUZZER_H |
dcindric | 0:2531c2b824f9 | 4 | #include "mbed.h" |
dcindric | 0:2531c2b824f9 | 5 | |
dcindric | 0:2531c2b824f9 | 6 | class Buzz |
dcindric | 0:2531c2b824f9 | 7 | { |
dcindric | 0:2531c2b824f9 | 8 | public: |
dcindric | 0:2531c2b824f9 | 9 | Buzz (PinName pin); |
dcindric | 0:2531c2b824f9 | 10 | void buzz (); |
dcindric | 0:2531c2b824f9 | 11 | void buzzOff(); |
dcindric | 0:2531c2b824f9 | 12 | private : |
dcindric | 0:2531c2b824f9 | 13 | PwmOut _pwm; |
dcindric | 0:2531c2b824f9 | 14 | }; |
dcindric | 0:2531c2b824f9 | 15 | |
dcindric | 0:2531c2b824f9 | 16 | #endif |