Home mbedmbed Examples mBed and 16×2 LCD

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

mbed and lcd

Code


#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");
}

You may also like