Arff ça marche pas, j'ai pas trouve le :
u8g.setPrintPos(80,48);
if (time != 0) {
lcd_print(itostr2(time/60));
lcd_print(':');
lcd_print(itostr2(time%60));
Alors j'ai rajouté:
// Pourcentage progression
u8g.setPrintPos(55,48);
u8g.print(itostr3(card.percentDone()));
u8g.print("%");
u8g.setPrintPos(86,48);
// Fin pourcentage progression!!
// Remaining Time
uint16_t time = print_job_timer.duration() / 60;
time = (time * (100/card.percentDone()))-time;
if (time != 0 && card.percentDone() >= 5) { // affiche le temps restant à partir de 5%
lcd_print(itostr2(time/60));
lcd_print(':');
lcd_print(itostr2(time%60));
}
// Fin Remaining Time
Mais j'ai ce message d'erreur :
Arduino : 1.8.4 (Windows 7), Carte : "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from sketch\ultralcd.cpp:75:0:
sketch\ultralcd_impl_DOGM.h: In function 'void lcd_implementation_status_screen()':
ultralcd_impl_DOGM.h:727: error: 'itostr2' was not declared in this scope
lcd_print(itostr2(time/60));
^
exit status 1
'itostr2' was not declared in this scope