Functions related to printing to the LCD

Dependents:   Year3_Version7_ET

lcd_functions.cpp

Committer:
erolleyparnell
Date:
2018-11-23
Revision:
0:063d075c40cb
Child:
1:de2f80988f12

File content as of revision 0:063d075c40cb:

#include "mbed.h"
#include "lcd_functions.hpp"
#include "serial_functions.hpp"


void displayOnLcd() {
    date_mutex.lock();
    
    myled = !myled;
 
    currentTime = time(NULL);
    strftime(lcdBuffer, 32, "%d/%m/%Y  %H:%M:%S", localtime(&currentTime));
 
    //lcd.cls();
//    lcd.locate(0,0);
    pc.printf("%s\n\r", lcdBuffer);
 
    myled = !myled;   
    date_mutex.unlock();   
}