Tianyang Chen / Mbed 2 deprecated TextLCD_HelloWorld

Dependencies:   TextLCD mbed

Fork of TextLCD_HelloWorld by Simon Ford

main.cpp

Committer:
timtianyang
Date:
2015-09-21
Revision:
3:319f05b6fe18
Parent:
2:ad0b044d0a10

File content as of revision 3:319f05b6fe18:

// 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("Hello World!\n");
        
        wait(0.5);
        lcd.cls();
        lcd.printf("11111111!\n");
        wait(0.5);
        lcd.cls();
    }
}