Display text on LCD displays (even on multiple ones). Allow to create windows (frames) on display, and to combine them (split, add, duplicate, scroll). See http://mbed.org/users/hlipka/notebook/lcdwindow/ for more information.

Dependents:   Mbell

Revision:
2:5ac5bab7daaf
Parent:
1:65f72ed914fa
Child:
3:e5d5e2fe4bf6
--- a/teewindow.cpp	Tue Nov 16 20:49:18 2010 +0000
+++ b/teewindow.cpp	Sat Nov 27 22:54:13 2010 +0000
@@ -26,14 +26,22 @@
 TeeWindow::TeeWindow(vector<Window*> lcds) {
     _lcds=lcds;
     int len=_lcds.size();
-    _height=_lcds[0]->getHeight();
-    _width=_lcds[0]->getWidth();
+    _columns=_lcds[0]->getColumns();
+    _rows=_lcds[0]->getRows();
 }
 
-void TeeWindow::writeText(const unsigned int line, const unsigned int pos, const char text[]) {
+void TeeWindow::character(int column, int row, int c)
+{
     int len=_lcds.size();
     for (int i=0;i<len;i++) {
-        _lcds[i]->writeText(line,pos,text);
+        _lcds[i]->character(column,row,c);
+    }
+}
+
+void TeeWindow::writeText(const unsigned int column, const unsigned int row, const char text[]) {
+    int len=_lcds.size();
+    for (int i=0;i<len;i++) {
+        _lcds[i]->writeText(column,row,text);
     }
 }