Saharsh Bishnoi
/
UBRLCDDisplay
UBR
Fork of TextLCD_HelloWorld by
Revision 3:a13f2724d641, committed 2013-11-17
- Comitter:
- saharshbishnoi
- Date:
- Sun Nov 17 15:22:22 2013 +0000
- Parent:
- 2:ad0b044d0a10
- Commit message:
- UBR Segment Display
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ad0b044d0a10 -r a13f2724d641 main.cpp --- a/main.cpp Sat Dec 04 11:31:07 2010 +0000 +++ b/main.cpp Sun Nov 17 15:22:22 2013 +0000 @@ -1,10 +1,23 @@ -// 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() { - lcd.printf("Hello World!\n"); -} +// 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); + } +}