LE YOU / func

Dependents:   mas

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Display.cpp Source File

Display.cpp

00001 #include "Display.h"
00002 
00003 Display::Display()
00004 {
00005     this->__lcd = new TextLCD(PA_6, PA_7, PB_6, PC_7, PA_9, PA_8, TextLCD::LCD16x2);
00006 }
00007 
00008 void Display::show(char *buffer0, char *buffer1)
00009 {
00010     this->__lcd->cls();
00011     if(buffer0)
00012         this->__lcd->locate(0,0);
00013         this->__lcd->printf("%s", buffer0);
00014     if(buffer1)
00015         this->__lcd->locate(0,1);
00016         this->__lcd->printf("%s", buffer1);
00017 }