lcd for beginners

Dependencies:   TextLCD mbed

Fork of TextLCD_HelloWorld by Srinivasan Ramasamy

main.cpp

Committer:
ramsphd
Date:
2013-04-13
Revision:
3:bae19bde97d5
Parent:
2:ad0b044d0a10
Child:
4:1ad7d56050dd

File content as of revision 3:bae19bde97d5:

// Hello World! for the TextLCD

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

TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7

int main() 
{
while (1){
    lcd.printf(" This is 16x2!\n");
    lcd.printf("Jello World!\n");
    wait(1);
    lcd.printf("Jello World!  \n");
    lcd.printf("Hello World!\n");
    wait(1);
}
}