Ispis na tri 7-segmentna display-a
Dependencies: mbed trostrukiSedamSeg
https://os.mbed.com/media/uploads/mmaretic/prototip_volana_formule_1.pdf
Revision 3:f941bac1f8a9, committed 2021-12-02
- Comitter:
- mmaretic
- Date:
- Thu Dec 02 20:38:04 2021 +0000
- Parent:
- 2:3227eef26c80
- Commit message:
- e
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3227eef26c80 -r f941bac1f8a9 main.cpp --- a/main.cpp Thu Dec 02 19:24:55 2021 +0000 +++ b/main.cpp Thu Dec 02 20:38:04 2021 +0000 @@ -56,14 +56,12 @@ break; default: servo.pulsewidth_us(1250); - // Skaliranje ulaza s 0 - 1 na 0 - 300kmh ADCvalue = Ain - 0.03; ADCvalue = (ADCvalue < 0) ? 0 : ADCvalue; ADCvalue *= 309.27; sprintf(zaPrikazati,"%i",(int)ADCvalue); - if(ADCvalue < 10){ zaPrikazati[2] = zaPrikazati[0]; zaPrikazati[0] = '0';