
Simulacija rada semafora s 4 LED diode, 7 segmentog display-a, zvučnika, tipkala i potenciometra
Dependencies: mbed
Revision 1:1b7ec94fe4ab, committed 2021-05-07
- Comitter:
- dcindric
- Date:
- Fri May 07 10:33:28 2021 +0000
- Parent:
- 0:2531c2b824f9
- Commit message:
- Konstukcijski Cindric
Changed in this revision
diff -r 2531c2b824f9 -r 1b7ec94fe4ab buzzer.h --- a/buzzer.h Thu May 06 18:55:48 2021 +0000 +++ b/buzzer.h Fri May 07 10:33:28 2021 +0000 @@ -1,4 +1,3 @@ -// SegDisplay.h file for Exercise 24 #ifndef BUZZER_H #define BUZZER_H #include "mbed.h"
diff -r 2531c2b824f9 -r 1b7ec94fe4ab main.cpp --- a/main.cpp Thu May 06 18:55:48 2021 +0000 +++ b/main.cpp Fri May 07 10:33:28 2021 +0000 @@ -18,7 +18,6 @@ pc1.printf("Semafor u kvaru \n \r"); flipper.attach(&kvar, 0.5); temp++; - } else if(gumbKvar == 0) { pc1.printf("Semafor u radu \n \r"); flipper.detach(); @@ -26,7 +25,6 @@ temp = 0; pc1.printf("\n \r"); } - } }
diff -r 2531c2b824f9 -r 1b7ec94fe4ab segmentni.h --- a/segmentni.h Thu May 06 18:55:48 2021 +0000 +++ b/segmentni.h Fri May 07 10:33:28 2021 +0000 @@ -3,6 +3,7 @@ #define SEGMENTNI_H #include "mbed.h" -extern BusOut Seg; // allow Seg1 to be manipulated by other files -void SegConvert(int SegValue); // function prototype +extern BusOut Seg; +void SegConvert(int SegValue); + #endif \ No newline at end of file
diff -r 2531c2b824f9 -r 1b7ec94fe4ab svjetla.h --- a/svjetla.h Thu May 06 18:55:48 2021 +0000 +++ b/svjetla.h Fri May 07 10:33:28 2021 +0000 @@ -1,4 +1,3 @@ -// SegDisplay.h file for Exercise 24 #ifndef SVJETLA_H #define SVJETLA_H #include "mbed.h"