Simulacija rada semafora s 4 LED diode, 7 segmentog display-a, zvučnika, tipkala i potenciometra

Dependencies:   mbed

https://os.mbed.com/media/uploads/dcindric/picture1.png

Files at this revision

API Documentation at this revision

Comitter:
dcindric
Date:
Fri May 07 10:33:28 2021 +0000
Parent:
0:2531c2b824f9
Commit message:
Konstukcijski Cindric

Changed in this revision

buzzer.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
segmentni.h Show annotated file Show diff for this revision Revisions of this file
svjetla.h Show annotated file Show diff for this revision Revisions of this file
--- 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"
--- 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");
         }
-
     }
 }
 
--- 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
--- 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"