Affcihage LCD
affichage.cpp@1:695a25294ff7, 2021-06-06 (annotated)
- Committer:
- schnf30
- Date:
- Sun Jun 06 12:14:10 2021 +0000
- Revision:
- 1:695a25294ff7
- Parent:
- 0:c18e11837edc
new
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
schnf30 | 0:c18e11837edc | 1 | #include "mbed.h" |
schnf30 | 0:c18e11837edc | 2 | #include "C12832.h" |
schnf30 | 0:c18e11837edc | 3 | #include "affichage.h" |
schnf30 | 0:c18e11837edc | 4 | |
schnf30 | 0:c18e11837edc | 5 | C12832 lcd(D11, D13, D12, D7, D10); |
schnf30 | 0:c18e11837edc | 6 | |
schnf30 | 1:695a25294ff7 | 7 | extern float VitFluxAir; |
schnf30 | 1:695a25294ff7 | 8 | extern float ConsigneFluxAir; |
schnf30 | 1:695a25294ff7 | 9 | extern float Freqhelice; |
schnf30 | 1:695a25294ff7 | 10 | extern float Temperature; |
schnf30 | 1:695a25294ff7 | 11 | extern float humidite; |
schnf30 | 1:695a25294ff7 | 12 | extern float pression[8]; |
schnf30 | 1:695a25294ff7 | 13 | extern float Fx; |
schnf30 | 1:695a25294ff7 | 14 | extern float Fz; |
schnf30 | 1:695a25294ff7 | 15 | extern float Aim; |
schnf30 | 1:695a25294ff7 | 16 | extern float Aic; |
schnf30 | 1:695a25294ff7 | 17 | |
schnf30 | 1:695a25294ff7 | 18 | void AffichageEcran(void) |
schnf30 | 0:c18e11837edc | 19 | { |
schnf30 | 1:695a25294ff7 | 20 | lcd.locate(0,0); |
schnf30 | 1:695a25294ff7 | 21 | lcd.printf("Pression[0] %0.0fPa",pression[0]); |
schnf30 | 1:695a25294ff7 | 22 | lcd.locate(0,11); |
schnf30 | 1:695a25294ff7 | 23 | lcd.printf("Cons Angle Inc %0.0f",Aic); |
schnf30 | 1:695a25294ff7 | 24 | lcd.locate(0,22); |
schnf30 | 1:695a25294ff7 | 25 | lcd.printf("Cons Vit Air %0.0f",ConsigneFluxAir); |
schnf30 | 0:c18e11837edc | 26 | } |
schnf30 | 0:c18e11837edc | 27 | |
schnf30 | 0:c18e11837edc | 28 |