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.
Revision 8:ba176eea3e40, committed 2011-01-10
- Comitter:
- hlipka
- Date:
- Mon Jan 10 22:57:59 2011 +0000
- Parent:
- 7:b472970bd8f6
- Child:
- 9:2fe93daa2106
- Commit message:
- fixed initialization for SED1335 (did not work directly after startup)
Changed in this revision
sed1335text.cpp | Show annotated file Show diff for this revision Revisions of this file |
sed1335text.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/sed1335text.cpp Tue Jan 04 22:58:59 2011 +0000 +++ b/sed1335text.cpp Mon Jan 10 22:57:59 2011 +0000 @@ -87,10 +87,15 @@ _a0=new DigitalOut(a0); _cs=new DigitalOut(cs); _reset=new DigitalOut(reset); - wait_ms(10); + wait_ms(100); } void SED1335TextLCD::init() { + initInternal(); + initInternal(); +} + +void SED1335TextLCD::initInternal() { _reset->write(0); wait_ms(2); _reset->write(1);
--- a/sed1335text.h Tue Jan 04 22:58:59 2011 +0000 +++ b/sed1335text.h Mon Jan 10 22:57:59 2011 +0000 @@ -54,6 +54,7 @@ virtual void character(int column, int row, int c); protected: + void initInternal(); void sendCmd(const unsigned char byte); void sendData(const unsigned char byte);