Tianyang Chen / Mbed 2 deprecated TextLCD_HelloWorld

Dependencies:   TextLCD mbed

Fork of TextLCD_HelloWorld by Simon Ford

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 // Hello World! for the TextLCD
00002 
00003 #include "mbed.h"
00004 #include "TextLCD.h"
00005 
00006 TextLCD lcd(p15, p16, p17, p18, p19, p20); // rs, e, d4-d7
00007 
00008 int main() {
00009     while(1){
00010         
00011         lcd.printf("Hello World!\n");
00012         
00013         wait(0.5);
00014         lcd.cls();
00015         lcd.printf("11111111!\n");
00016         wait(0.5);
00017         lcd.cls();
00018     }
00019 }