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

Files at this revision

API Documentation at this revision

Comitter:
vishal99
Date:
Tue Mar 26 06:27:17 2019 +0000
Parent:
0:a056f714557f
Commit message:
The 16by2 LCD display is a very basic module commonly used in projects and circuits. The 16by2 translates a display 16 characters per line in 2 such lines. In this LCD each character is displayed in a 5by7 pixel matrix.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Jul 08 02:52:20 2014 +0000
+++ b/main.cpp	Tue Mar 26 06:27:17 2019 +0000
@@ -2,11 +2,20 @@
 
 #include "mbed.h"
 #include "TextLCD.h"
-
-TextLCD lcd(PTD1, PTD3, PTD2, PTD0, PTD5, PTA13); // rs, e, d4-d7
+#include "stdio.h"
+TextLCD lcd(PTC9, PTC8, PTA5, PTA4, PTA12, PTD4); // rs, e, d4-d7
 
-int main() {
-    lcd.printf("Hi i'm Freescale\n");
-    lcd.locate(1, 5);
-    lcd.printf(" FRDM-kl25z\n");
+int main() 
+{
+    lcd.cls();
+    lcd.printf("This is 16X2 LCD \n");
+    while (1)
+    {
+        lcd.locate(9,1);
+       
+        
+         wait(2);
+        
+    }
+    
 }