LCD library files

Dependents:   ELEC350_Project2

LCDdisplay.cpp

Committer:
Swabey89
Date:
2018-11-18
Revision:
2:e9f3e49d41e0
Parent:
1:645488381317
Child:
3:747b1be583fc

File content as of revision 2:e9f3e49d41e0:

#include "LCDdisplay.hpp"


void LCD_display(double temp, double pressure, float light)
{
    //Write new data to LCD (not fast!)
    lcd.cls();
    /*
    lcd.printf("Temp   Pressure\n"); 
    lcd.printf("%6.1f ",temp);
    lcd.printf("%.2f\n",pressure);    
    */
    lcd.printf("T:%4.1f  L:%5.1f\n",temp, light*100);
    lcd.printf("P:%.2f", pressure); 
}