SLIM BEN OTHMAN / Mbed 2 deprecated LCD_test

Dependencies:   TextLCD mbed

Fork of LCD_test by Rain Ashford

main.cpp

Committer:
slimbenothman
Date:
2018-06-04
Revision:
1:d8bbe6c6a563
Parent:
0:2e3ae6cbbe60

File content as of revision 1:d8bbe6c6a563:

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

TextLCD lcd(PA_9, PC_7, PB_5, PB_4, PB_10, PA_8); // rs, e, d4-d7

char *message = "                Hello there mousie!";

int main()
{
    lcd.printf("Yay! Woo! from  Rainycat!");
    int i=0;
    while (1) {
        lcd.locate(1,0);
        lcd.printf(message);
        message=message+1;
        i++;
        if (i == strlen(message))
            strcpy(message, "                Hello there mousie!");
        wait_ms(450);
    }
}