Been there :)
It's simple, really. When using an LCD in 4-Bit-bus-mode pins d4-7 are the ones that are used, that's just how it is :)
The only problem is that in the demo files' comments it is said differently:
#include "mbed.h"
#include "TextLCD.h"
TextLCD lcd(p24, p25, p26, p27, p28, p29, p30); // rs, e, d0-d3
int main() {
lcd.printf("Hello World!\n");
}
In the discussion concerning LCDs this is explained somewhere, b.t.w.
There's another discrepancy, due to various versions of library I suppose: some use r/w actively (which is necessary if You want to use the display's 'reafy flag'). Others don't.
The example above uses seven pins but in the comment it speaks of six (if You add up ;) ), in the comment it should be rs, rw, e, d4-d7
Christoph
Hi All,
I have just bought a mbed, and made my first programs..
But now I'm trying to make my LCD 16x2 to work,
I have tried a number of different libraries, but can't make it show anything, so I'm starting to think that my LCD not is compatible ?
Can any of you take a look at the specs and see if it might come to work ?
SPECS