UBR

Dependencies:   TextLCD mbed

Fork of TextLCD_HelloWorld by Simon Ford

main.cpp

Committer:
saharshbishnoi
Date:
2013-11-17
Revision:
3:a13f2724d641
Parent:
2:ad0b044d0a10

File content as of revision 3:a13f2724d641:

// Hello World! for the TextLCD

#include "mbed.h"
#include "TextLCD.h"

TextLCD lcd(p26, p25, p24, p23, p22, p21); // rs, e, d4-d7
int main() {
// Clear LCD Screen
    lcd.cls();
    wait(1);
// Print to LCD on first line
    lcd.printf("Hello LCD World!\n");
    
    char a = 'a';
    
    while(1){
        lcd.cls();
        wait(0.25);
        lcd.putc(a);
        a++;
        wait(0.25);
    }
}