Filip Stevanovic
/
19E042PIM_T1_2020_0039
Filip Stevanovic 2020/0039
Revision 1:0f79d461ce2e, committed 2021-11-06
- 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;