10 years, 5 months ago.

LCD

Hello!!

Does anyone know how to set up two LCD displays on a LPC1768?

2 Answers

10 years, 5 months ago.

Hi!

See Cookbook -> LCDs and Displays

http://mbed.org/cookbook/Homepage#lcds-and-displays

Charly

Edit:

Sorry - didn't see the TWO

But ist should be possible to use different ports for the two displays. Depends on your display.

Charly

Accepted Answer
Thomas Emil
poster
10 years, 5 months ago.

I read somewhere that you can use:

TextLCD lcd (p15, p16, p17, p18, p19, p20, TextLCD :: LCD16x2); / / rs, e, d4-d7

But change of the p16 (e Enable line (clock) and in thus get both displays to run on the same port, but different (E p16) ..?

Exambel: TextLCD lcd1 (p15, p16, p17, p18, p19, p20, TextLCD :: LCD16x2); / / rs, e, d4-d7 TextLCD lcd2 (p15, p21, p17, p18, p19, p20, TextLCD :: LCD16x2); / / rs, e, d4-d7

Correct, you can use multiple displays that share data and RS lines. They only need separate Enable (E) pins. In case you really need many displays (upto 16..) or in case you want to save some pins consider using my lib that allows LCD interfacing through I2C or SPI expanders. See here

posted by Wim Huiskamp 22 Nov 2013