Dai Yokota / TextLCD_ostream

Dependencies:   ACM1602NI TextLCD

Dependents:   TextLCD_ostream_sample

TextLCD_ostream.cpp

Committer:
jk1lot
Date:
2016-06-22
Revision:
3:183bcab4951b
Parent:
1:e46139d4b8ba
Child:
4:3a1291526e04

File content as of revision 3:183bcab4951b:

#include "TextLCD_ostream.h"

lcd_streambuf::int_type lcd_streambuf::overflow(lcd_streambuf::int_type c)
{
    if( c != EOF ) lcd->putc(c);
    return c;
}

lcd_ostream& lcd_ostream::locate(int column, int row)
{
    lcd->locate(column,row);
    return *this;
}

lcd_ostream& lcd_ostream::cls()
{
    lcd->cls();
    return *this;
}