1 /* mbed TextDisplay Display Library Base Class
2 * Copyright (c) 2007-2009 sford
3 * Released under the MIT License: http://mbed.org/license/mit
6 #include "TextDisplay.h"
8 TextDisplay::TextDisplay(const char *name) : Stream(name) {
13 int TextDisplay::_putc(int value) {
21 character(_column, _row, value);
23 if(_column >= columns()) {
34 // crude cls implementation, should generally be overwritten in derived class
35 void TextDisplay::cls() {
37 for(int i=0; i<columns()*rows(); i++) {
42 void TextDisplay::locate(int column, int row) {
47 int TextDisplay::_getc() {
51 void TextDisplay::foreground(int colour) {
55 void TextDisplay::background(int colour) {