Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 8 months ago.
LCD
Hello!!
Does anyone know how to set up two LCD displays on a LPC1768?
2 Answers
10 years, 8 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
10 years, 8 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 22 Nov 2013