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.
main.cpp
00001 // Hello World! for the TextLCD 00002 00003 #include "mbed.h" 00004 #include "TextLCD.h" 00005 #include "stdio.h" 00006 TextLCD lcd(PTC9, PTC8, PTA5, PTA4, PTA12, PTD4); // rs, e, d4-d7 00007 00008 int main() 00009 { 00010 lcd.cls(); 00011 lcd.printf("This is 16X2 LCD \n"); 00012 while (1) 00013 { 00014 lcd.locate(9,1); 00015 00016 00017 wait(2); 00018 00019 } 00020 00021 }
Generated on Mon Aug 15 2022 10:43:44 by
1.7.2