Test LCD

Dependencies:   mbed

Fork of TextLCDTest by Simon Ford

Committer:
Tomoseec
Date:
Tue Dec 25 06:56:22 2012 +0000
Revision:
1:8ffd3f6b11b6
Parent:
0:b77078f30b97
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simon 0:b77078f30b97 1
simon 0:b77078f30b97 2 #include "mbed.h"
simon 0:b77078f30b97 3 #include "TextLCD.h"
simon 0:b77078f30b97 4
Tomoseec 1:8ffd3f6b11b6 5 TextLCD lcd(p24, p25, p26, p27, p28, p29, p30);//NGX mX-Base-Board Ver1.2 Type
Tomoseec 1:8ffd3f6b11b6 6 //(PinName rs, PinName rw, PinName e, PinName d0, PinName d1, PinName d2, PinName d3, int columns, int rows)
Tomoseec 1:8ffd3f6b11b6 7
simon 0:b77078f30b97 8 DigitalOut led(LED1);
simon 0:b77078f30b97 9
simon 0:b77078f30b97 10 int main() {
Tomoseec 1:8ffd3f6b11b6 11
Tomoseec 1:8ffd3f6b11b6 12 lcd.cls();
simon 0:b77078f30b97 13 lcd.locate(0,0);
Tomoseec 1:8ffd3f6b11b6 14 lcd.printf("Hello World!");
Tomoseec 1:8ffd3f6b11b6 15 lcd.locate(0,1);
Tomoseec 1:8ffd3f6b11b6 16 lcd.printf("Tomoseec");
Tomoseec 1:8ffd3f6b11b6 17 while(1) {
Tomoseec 1:8ffd3f6b11b6 18 led = 1;
Tomoseec 1:8ffd3f6b11b6 19 wait(0.2);
Tomoseec 1:8ffd3f6b11b6 20 led = 0;
Tomoseec 1:8ffd3f6b11b6 21 wait(0.2);
simon 0:b77078f30b97 22 }
simon 0:b77078f30b97 23 }
simon 0:b77078f30b97 24