Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LCD課題0 by
Revision 1:fe4982ab76f2, committed 2016-10-06
- Comitter:
- nakano_han
- Date:
- Thu Oct 06 05:02:04 2016 +0000
- Parent:
- 0:b064834f3e7a
- Commit message:
- LCD???0
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r b064834f3e7a -r fe4982ab76f2 main.cpp --- a/main.cpp Fri Aug 19 06:03:24 2016 +0000 +++ b/main.cpp Thu Oct 06 05:02:04 2016 +0000 @@ -1,17 +1,17 @@ #include "mbed.h" #include "TextLCD.h" -TextLCD lcd(D8,D10,D11,D12,D13,D14); // rs, e, d4, d5, d6, d7) +TextLCD lcd(D8,D10,D11,D12,D13,D14); // rs, e, d4, d5, d6, d7) //LCD出力設定 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 \ No newline at end of file + 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秒待つ + } +} \ No newline at end of file