tiz

Dependencies:   TextLCD X_NUCLEO_IKS01A1 func mbed-src mbed

Fork of mas by esproj

func/Display.cpp

Committer:
herenvarno
Date:
2016-08-23
Revision:
5:100310ea8fba
Parent:
3:4355890e55b4

File content as of revision 5:100310ea8fba:

#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);
}