tiz

Dependents:   mas

Revision:
0:d60c26d5fddc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Display.cpp	Wed Sep 14 08:55:41 2016 +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