
LCD 課題0 文字表示練習 ”Hello World”
Fork of LCD課題0 by
main.cpp
- Committer:
- nakano_han
- Date:
- 2016-10-06
- Revision:
- 1:fe4982ab76f2
- Parent:
- 0:b064834f3e7a
File content as of revision 1:fe4982ab76f2:
#include "mbed.h" #include "TextLCD.h" TextLCD lcd(D8,D10,D11,D12,D13,D14); // rs, e, d4, d5, d6, d7) //LCD出力設定 int main(){ while(1){ //無限ループ lcd.cls(); //LCD表示初期化 lcd.locate(0,0); //表示座標 lcd.printf("Hello"); //文字表示 wait(1.0); //1秒待つ lcd.cls(); //CD表示初期化 lcd.locate(0,1); //表示座標 lcd.printf("World!"); //文字表示 wait(1.0); //1秒待つ } }