test de premier push

Dependencies:   WakeUp mbed EPD_GDE021A1

Committer:
nba
Date:
Thu Nov 10 19:15:10 2016 +0000
Revision:
15:5bb6f11fc300
Parent:
14:65e134c75d8c
Child:
16:dc4a1be5abdb
Maj mineur

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 15:5bb6f11fc300 6 //poids = Poids::get;
nba 13:0afb541c480e 7 temperature = 12.34;
nba 13:0afb541c480e 8 humidite = 52.47;
nba 13:0afb541c480e 9
nba 13:0afb541c480e 10 sprintf (ligne1, "La ruche pese actuelement %3fKg",poids);
nba 13:0afb541c480e 11 sprintf (ligne2, "La temperature est de %3f C",temperature);
nba 13:0afb541c480e 12 sprintf (ligne3, "L'humidite est de %3f %",humidite);
nba 13:0afb541c480e 13 sprintf (ligne4, "et la");
nba 13:0afb541c480e 14 sprintf (ligne5, "on met autre chose");
nba 13:0afb541c480e 15
nba 13:0afb541c480e 16
nba 13:0afb541c480e 17 epd.Clear(EPD_COLOR_WHITE);
nba 13:0afb541c480e 18
nba 13:0afb541c480e 19 epd.DisplayStringAtLine(5, (uint8_t*)ligne1, CENTER_MODE);
nba 13:0afb541c480e 20 epd.DisplayStringAtLine(4, (uint8_t*)ligne2, CENTER_MODE);
nba 13:0afb541c480e 21 epd.DisplayStringAtLine(3, (uint8_t*)ligne3, CENTER_MODE);
nba 13:0afb541c480e 22 epd.DisplayStringAtLine(2, (uint8_t*)ligne4, CENTER_MODE);
nba 13:0afb541c480e 23 epd.DisplayStringAtLine(2, (uint8_t*)ligne5, CENTER_MODE);
nba 13:0afb541c480e 24
nba 13:0afb541c480e 25
nba 13:0afb541c480e 26 epd.RefreshDisplay();
nba 13:0afb541c480e 27
nba 13:0afb541c480e 28 }