SLIM BEN OTHMAN / Mbed 2 deprecated LCD_test

Dependencies:   TextLCD mbed

Fork of LCD_test by Rain Ashford

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "TextLCD.h"
00003 
00004 TextLCD lcd(PA_9, PC_7, PB_5, PB_4, PB_10, PA_8); // rs, e, d4-d7
00005 
00006 char *message = "                Hello there mousie!";
00007 
00008 int main()
00009 {
00010     lcd.printf("Yay! Woo! from  Rainycat!");
00011     int i=0;
00012     while (1) {
00013         lcd.locate(1,0);
00014         lcd.printf(message);
00015         message=message+1;
00016         i++;
00017         if (i == strlen(message))
00018             strcpy(message, "                Hello there mousie!");
00019         wait_ms(450);
00020     }
00021 }