Description: 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 10 Jan 2011
- Comitter:
- 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
--- 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);

