Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LcdWindow by
Diff: teewindow.cpp
- Revision:
- 2:5ac5bab7daaf
- Parent:
- 1:65f72ed914fa
- Child:
- 3:e5d5e2fe4bf6
diff -r 65f72ed914fa -r 5ac5bab7daaf teewindow.cpp
--- 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);
}
}
