TVZ2020 / Mbed 2 deprecated HelloWorld-1602LCD

Dependencies:   mbed TextLCD

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(PA_0, PA_1, PA_4, PB_0, PC_1, PC_0); // rs, e, d4-d7
00007 
00008 int main() {
00009     lcd.locate(3,1);
00010     lcd.printf("Hello World!\n");
00011 }