Saharsh Bishnoi / Mbed 2 deprecated UBRLCDDisplay

Dependencies:   TextLCD mbed

Fork of TextLCD_HelloWorld by Simon Ford

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 // Hello World! for the TextLCD
00002 
00003 #include "mbed.h"
00004 #include "TextLCD.h"
00005 
00006 TextLCD lcd(p26, p25, p24, p23, p22, p21); // rs, e, d4-d7
00007 int main() {
00008 // Clear LCD Screen
00009     lcd.cls();
00010     wait(1);
00011 // Print to LCD on first line
00012     lcd.printf("Hello LCD World!\n");
00013     
00014     char a = 'a';
00015     
00016     while(1){
00017         lcd.cls();
00018         wait(0.25);
00019         lcd.putc(a);
00020         a++;
00021         wait(0.25);
00022     }
00023 }