Connect HD44780 LCD display to mbed (4-Bit mode). Changes to make PCF2116 work.
Dependents: tuner Base_Hybrid_V3 Base_Hybrid_V2 base_rekam_darurat_v1 ... more
Revision 1:fb402d95983d, committed 2011-03-28
- Comitter:
- erik_kedo
- Date:
- Mon Mar 28 09:09:21 2011 +0000
- Parent:
- 0:9bdcc985b306
- Commit message:
- 0.91
Changed in this revision
NewTextLCD.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/NewTextLCD.cpp Mon Feb 28 17:13:47 2011 +0000 +++ b/NewTextLCD.cpp Mon Mar 28 09:09:21 2011 +0000 @@ -41,6 +41,7 @@ for (int i=0; i<3; i++) { _e = 1; __nop(); + __nop(); _d = 0x3; __nop(); // data setup time at least 60 ns _e = 0; @@ -48,6 +49,7 @@ } _e = 1; __nop(); + __nop(); _d = 0x2; // 4 Bit mode (after this command, we have to send 2 nibbles) __nop(); _e = 0; @@ -112,6 +114,7 @@ __nop(); _e = 0; __nop(); + __nop(); _e = 1; __nop(); _d = value >> 0; // then lower