Étape 5: Affichage à cristaux liquides
Garder un ordinateur connecté tout le temps est gênant, alors j’ai ajouté un écran de lcd de 4 lignes au projet.
lcd.setCursor(0,0) ;
LCD.Print(batteryVoltage) ;
LCD.Print (« V ») ;
LCD.Print(AMPS) ;
LCD.Print ("A") ;
lcd.setCursor(0,1) ;
LCD.Print(watts) ;
LCD.Print ("W") ;
LCD.Print(Time/3600) ;
LCD.Print ("H") ;
lcd.setCursor(0,2) ;
LCD.Print(ampHours) ;
LCD.Print ("Ah") ;
LCD.Print(wattHours) ;
LCD.Print ("Wh") ;