mBed and 16×2 LCD

This is made easy by the TEXT LCD library. The schematic shows how to connect up the 16×2 LCD to the MBEd

Schematic

mbed and lcd

Code

[c]

#include “mbed.h”
#include “TextLCD.h”

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

int main() {
lcd.printf(“Hello World!\n”);
}

[/c]

Related posts

ST Nucleo F334R8 LCD example

mbed and tri color LED