Filip Stevanovic
/
19E042PIM_T1_2020_0039
Filip Stevanovic 2020/0039
Diff: main.cpp
- Revision:
- 1:0f79d461ce2e
- Parent:
- 0:73ba3c3ca466
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;