tiz
Display.cpp
- Committer:
- youle1119
- Date:
- 2016-09-14
- Revision:
- 0:d60c26d5fddc
File content as of revision 0:d60c26d5fddc:
#include "Display.h"
Display::Display()
{
this->__lcd = new TextLCD(PA_6, PA_7, PB_6, PC_7, PA_9, PA_8, TextLCD::LCD16x2);
}
void Display::show(char *buffer0, char *buffer1)
{
this->__lcd->cls();
if(buffer0)
this->__lcd->locate(0,0);
this->__lcd->printf("%s", buffer0);
if(buffer1)
this->__lcd->locate(0,1);
this->__lcd->printf("%s", buffer1);
}