Tomo SEEC / Mbed 2 deprecated mbed-mX-LCD-TEST1

Dependencies:   mbed

Fork of TextLCDTest by Simon Ford

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 
00002 #include "mbed.h"
00003 #include "TextLCD.h"
00004 
00005 TextLCD lcd(p24, p25, p26, p27, p28, p29, p30);//NGX mX-Base-Board Ver1.2 Type
00006 //(PinName rs, PinName rw, PinName e, PinName d0, PinName d1, PinName d2, PinName d3, int columns, int rows)
00007 
00008 DigitalOut led(LED1);
00009 
00010 int main() {
00011 
00012     lcd.cls();
00013     lcd.locate(0,0);
00014     lcd.printf("Hello World!");
00015     lcd.locate(0,1);
00016     lcd.printf("Tomoseec");
00017     while(1) {
00018         led = 1;
00019         wait(0.2);
00020         led = 0;
00021         wait(0.2);
00022     }
00023 }
00024