AI LCDフレンド!
コンポーネントと消耗品
> ![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 19 | |||
![]() |
| × | 1 | |||
| × | 4 | ||||
![]() |
| × | 3 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 |
アプリとオンラインサービス
> ![]() |
| |||
![]() |
|
このプロジェクトについて
孤独な時間にあなたに仲間を与えるために。
コード
- コード
コード C / C ++
必要に応じて拡張できます。拡張コードをコメントに投稿するだけです。 「続行」の後にこれをコピーして貼り付けるだけです。 ->lcd.clear();
lcd.print( "To be");
lcd.setCursor(2、2);
lcd.print( "続き。");
delay(2000);
#includeLiquidCrystal lcd(12、11、5、4、3、2); const int buttonPin =9; int buttonState =0; const int buttonPin2 =10; const int buttonPin3 =8; void setup(){//セットアップコードをここに配置して、1回実行します:pinMode(buttonPin、INPUT); pinMode(buttonPin2、INPUT); pinMode(buttonPin3、INPUT); lcd.begin(16、2); lcd.print( "(。)(。)こんにちはI"); lcd.setCursor(2、2); lcd.print( "(____)am Robi"); delay(2000); lcd.clear(); lcd.print( "(。)(。)あなた"); lcd.setCursor(2、2); lcd.print( "____は話すことができます"); delay(2000); lcd.clear(); lcd.print( "(-)(-)to"); lcd.setCursor(2、2); lcd.print( "(____)me!"); delay(2000); lcd.clear(); lcd.print( "(。)(。)Tap"); lcd.setCursor(2、2); lcd.print( "____ the"); delay(2000); lcd.clear(); lcd.print( "(。)(。)but"); lcd.setCursor(2、2); lcd.print( "(____)トン"); delay(2000);} void loop(){buttonState =digitalRead(buttonPin); if(buttonState ==HIGH){lcd.clear(); lcd.print( "こんにちは私は"); lcd.setCursor(2、2); lcd.print( "Alexander"); delay(2000); lcd.clear(); lcd.print( "(*)(*)こんにちは!"); lcd.setCursor(2、2); lcd.print( "(____)"); delay(2000); lcd.clear(); lcd.print( "(。)(。)Let's"); lcd.setCursor(2、2); lcd.print( "____ play"); delay(2000); lcd.clear(); lcd.print( "OK!"); lcd.setCursor(2、2); lcd.print( "しかしどこ?"); delay(2000); lcd.clear(); lcd.print( "(。)(。)パーク"); lcd.setCursor(2、2); lcd.print( "(____)またはhome?"); delay(2000); lcd.clear(); lcd.print( "Left =Park"); lcd.setCursor(2、2); lcd.print( "Right =Home"); delay(2000); } buttonState =digitalRead(buttonPin2); if(buttonState ==HIGH){lcd.clear(); lcd.print( "You go to"); lcd.setCursor(2、2); lcd.print( "公園..."); delay(2000); lcd.clear(); lcd.print( "(。)(。)Lets"); lcd.setCursor(2、2); lcd.print( "____スイング!"); delay(2000); lcd.clear(); lcd.print( "OK!"); lcd.setCursor(2、2); lcd.print( "あなたはスイングします..."); delay(2000); lcd.clear(); lcd.print( "(*)(*)私は"); lcd.setCursor(2、2); lcd.print( "(___)疲れた"); delay(2000); lcd.clear(); lcd.print( "私も!"); lcd.setCursor(2、2); lcd.print( "飲みましょう。"); delay(2000); lcd.clear(); lcd.print( "(。)(。)うん"); lcd.setCursor(2、2); lcd.print( "(____)"); delay(2000); lcd.clear(); lcd.print( "あなたは買いに行きます"); lcd.setCursor(2、2); lcd.print( "飲み物..."); delay(2000); lcd.clear(); lcd.print( "(*)(*)ああ!"); lcd.setCursor(2、2); lcd.print( "____ OW !!"); delay(2000); lcd.clear(); lcd.print( "What?"); lcd.setCursor(2、2); lcd.print( "..."); delay(2000); lcd.clear(); lcd.print( "(*)(*)Water"); lcd.setCursor(2、2); lcd.print( "[]私の目に入る"); delay(2000); lcd.clear(); lcd.print( "To be"); lcd.setCursor(2、2); lcd.print( "続き。"); delay(2000);} buttonState =digitalRead(buttonPin3); if(buttonState ==HIGH){lcd.clear(); lcd.print( "You go to"); lcd.setCursor(2、2); lcd.print( "your home ..."); delay(2000); lcd.clear(); lcd.print( "(。)(。)WOW!"); lcd.setCursor(2、2); lcd.print( "___ Cool!"); delay(2000); lcd.clear(); lcd.print( "あなたはのために遊ぶ"); lcd.setCursor(2、2); lcd.print( "日..."); delay(2000); lcd.clear(); lcd.print( "To be"); lcd.setCursor(2、2); lcd.print( "続き。"); delay(2000); lcd.clear();}}
回路図

製造プロセス