Filip Stevanovic 2020/0039

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
filip_ste
Date:
Sat Nov 06 08:24:35 2021 +0000
Parent:
0:73ba3c3ca466
Commit message:
Filip Stevanovic 2020/0039

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 73ba3c3ca466 -r 0f79d461ce2e main.cpp
--- a/main.cpp	Sat Nov 06 08:15:52 2021 +0000
+++ b/main.cpp	Sat Nov 06 08:24:35 2021 +0000
@@ -45,7 +45,10 @@
 //Konvertovanje broja u cifre i ispisivanje
 void ispisi(int num){
     int j = num%10,d = num/10;
-    SegDisp(d);
+    if(d==0)
+        SegDisp(-1);
+    else
+        SegDisp(d);
     select = 0b01;
     wait_ms(HalfPool);
     SegDisp(j);
@@ -59,6 +62,7 @@
 int brojac=0;
 
 int main(){
+    //Default vrednosti za sve ugaseno
     display = 0x7f;
     select = 0x3;