IMaR / Mbed 2 deprecated MPSLCD

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 LCDType asdasd= LCD16x2B
00006 TextLCD lcd(PTC9, PTC8, PTA5, PTA4, PTA12, PTD4, asdasd); // rs, e, d4-d7
00007 
00008 int main() {
00009     printf("Hello World!\n");
00010     lcd.cls();
00011     lcd.printf("Hello World!\n");
00012     lcd.locate(0, 1);
00013     lcd.printf("line 2\n");
00014     lcd.locate(0, 2);
00015     lcd.printf("line 3\n");
00016     lcd.locate(0, 3);
00017     lcd.printf("line 4\n");
00018 
00019 }