LCD 課題0 文字表示練習 ”Hello World”

Dependencies:   TextLCD mbed

Fork of LCD課題0 by 中野班 中野班

main.cpp

Committer:
nakano_han
Date:
2016-08-19
Revision:
0:b064834f3e7a
Child:
1:fe4982ab76f2

File content as of revision 0:b064834f3e7a:

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

TextLCD lcd(D8,D10,D11,D12,D13,D14); // rs, e, d4, d5, d6, d7)

int main(){
    while(1){
        lcd.cls();
        lcd.locate(0,0);
        lcd.printf("Hello");
        wait(1.0);
        lcd.cls();
        lcd.locate(0,1);
        lcd.printf("World!");
        wait(1.0);
    }//while
}//main