The 16×2 LCD display is a very basic module commonly used in projects and circuits. The 16×2 translates a display 16 characters per line in 2 such lines. In this LCD each character is displayed in a 5×7 pixel matrix.

Dependencies:   mbed TextLCD

main.cpp

Committer:
BrayanB
Date:
2014-07-08
Revision:
0:a056f714557f
Child:
1:df3ee6b36c2b

File content as of revision 0:a056f714557f:

// Hello World! for the TextLCD

#include "mbed.h"
#include "TextLCD.h"

TextLCD lcd(PTD1, PTD3, PTD2, PTD0, PTD5, PTA13); // rs, e, d4-d7

int main() {
    lcd.printf("Hi i'm Freescale\n");
    lcd.locate(1, 5);
    lcd.printf(" FRDM-kl25z\n");
}