Umair Aftab
/
LCD20x2
4-bit Mode LCD 20x2
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 // Hello World! for the TextLCD 00002 00003 #include "mbed.h" 00004 #include "TextLCD.h" 00005 00006 Serial pc(USBTX, USBRX); // tx, rx 00007 00008 00009 TextLCD lcd(PTA1, PTA2, PTD4, PTA12, PTA4, PTA5, TextLCD::LCD20x2); // rs, e, d4-d7 ok 00010 00011 00012 00013 int main() { 00014 00015 00016 00017 // Show cursor as blinking character 00018 lcd.setCursor(TextLCD::CurOff_BlkOn); 00019 lcd.printf("Hello Plamen"); 00020 lcd.locate(0,1); 00021 lcd.printf("Its Working Now"); 00022 00023 } 00024
Generated on Sat Jul 23 2022 00:56:04 by 1.7.2