test de premier push

Dependencies:   WakeUp mbed EPD_GDE021A1

Committer:
nba
Date:
Wed Nov 09 21:42:18 2016 +0000
Revision:
14:65e134c75d8c
Parent:
Sources/ecrant.cpp@13:0afb541c480e
Child:
15:5bb6f11fc300
MAJ ecran

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nba 14:65e134c75d8c 1 #include "../Headers/ecran.h"
nba 13:0afb541c480e 2
nba 14:65e134c75d8c 3 void Ecran::print()
nba 13:0afb541c480e 4 {
nba 13:0afb541c480e 5 poids = 48.26;
nba 13:0afb541c480e 6 temperature = 12.34;
nba 13:0afb541c480e 7 humidite = 52.47;
nba 13:0afb541c480e 8
nba 13:0afb541c480e 9 sprintf (ligne1, "La ruche pese actuelement %3fKg",poids);
nba 13:0afb541c480e 10 sprintf (ligne2, "La temperature est de %3f C",temperature);
nba 13:0afb541c480e 11 sprintf (ligne3, "L'humidite est de %3f %",humidite);
nba 13:0afb541c480e 12 sprintf (ligne4, "et la");
nba 13:0afb541c480e 13 sprintf (ligne5, "on met autre chose");
nba 13:0afb541c480e 14
nba 13:0afb541c480e 15
nba 13:0afb541c480e 16 epd.Clear(EPD_COLOR_WHITE);
nba 13:0afb541c480e 17
nba 13:0afb541c480e 18 epd.DisplayStringAtLine(5, (uint8_t*)ligne1, CENTER_MODE);
nba 13:0afb541c480e 19 epd.DisplayStringAtLine(4, (uint8_t*)ligne2, CENTER_MODE);
nba 13:0afb541c480e 20 epd.DisplayStringAtLine(3, (uint8_t*)ligne3, CENTER_MODE);
nba 13:0afb541c480e 21 epd.DisplayStringAtLine(2, (uint8_t*)ligne4, CENTER_MODE);
nba 13:0afb541c480e 22 epd.DisplayStringAtLine(2, (uint8_t*)ligne5, CENTER_MODE);
nba 13:0afb541c480e 23
nba 13:0afb541c480e 24
nba 13:0afb541c480e 25 epd.RefreshDisplay();
nba 13:0afb541c480e 26
nba 13:0afb541c480e 27 }