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:
vishal99
Date:
2019-03-26
Revision:
1:df3ee6b36c2b
Parent:
0:a056f714557f

File content as of revision 1:df3ee6b36c2b:

// Hello World! for the TextLCD

#include "mbed.h"
#include "TextLCD.h"
#include "stdio.h"
TextLCD lcd(PTC9, PTC8, PTA5, PTA4, PTA12, PTD4); // rs, e, d4-d7

int main() 
{
    lcd.cls();
    lcd.printf("This is 16X2 LCD \n");
    while (1)
    {
        lcd.locate(9,1);
       
        
         wait(2);
        
    }
    
}