Test LCD

Dependencies:   mbed

Fork of TextLCDTest by Simon Ford

main.cpp

Committer:
Tomoseec
Date:
2012-12-25
Revision:
1:8ffd3f6b11b6
Parent:
0:b77078f30b97

File content as of revision 1:8ffd3f6b11b6:


#include "mbed.h"
#include "TextLCD.h"

TextLCD lcd(p24, p25, p26, p27, p28, p29, p30);//NGX mX-Base-Board Ver1.2 Type
//(PinName rs, PinName rw, PinName e, PinName d0, PinName d1, PinName d2, PinName d3, int columns, int rows)

DigitalOut led(LED1);

int main() {

    lcd.cls();
    lcd.locate(0,0);
    lcd.printf("Hello World!");
    lcd.locate(0,1);
    lcd.printf("Tomoseec");
    while(1) {
        led = 1;
        wait(0.2);
        led = 0;
        wait(0.2);
    }
}