tiz
Dependencies: TextLCD X_NUCLEO_IKS01A1 func mbed-src mbed
Fork of mas by
Diff: func/Display.cpp
- Revision:
- 3:4355890e55b4
diff -r 1df80fe13928 -r 4355890e55b4 func/Display.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/func/Display.cpp Sun Dec 13 16:36:36 2015 +0000 @@ -0,0 +1,17 @@ +#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); +} \ No newline at end of file