Affcihage LCD
affichage.cpp@0:c18e11837edc, 2021-05-23 (annotated)
- Committer:
- schnf30
- Date:
- Sun May 23 13:17:37 2021 +0000
- Revision:
- 0:c18e11837edc
- Child:
- 1:695a25294ff7
Affichage Lcd
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 | 0:c18e11837edc | 7 | void AffichageEcran(float mesure,float consigne) |
schnf30 | 0:c18e11837edc | 8 | { |
schnf30 | 0:c18e11837edc | 9 | lcd.locate(0,3); |
schnf30 | 0:c18e11837edc | 10 | lcd.printf("Mesuree %03.1f\n\r",mesure); |
schnf30 | 0:c18e11837edc | 11 | lcd.locate(0,14); |
schnf30 | 0:c18e11837edc | 12 | lcd.printf("Cons Angle Inc %03.1f\n\r",consigne); |
schnf30 | 0:c18e11837edc | 13 | } |
schnf30 | 0:c18e11837edc | 14 | |
schnf30 | 0:c18e11837edc | 15 |