0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[例題の為の例題]シリアル入力をエコーバックする

Posted at

結果

o_coq963.jpg

プログラム



//input_teset1b_UNO_1


//インクルド
#include <Arduino.h>


//初期化
void setup(){

  //シリアルポートの初期化
  Serial.begin(9600);

}  //setup


//メインループ
void loop(){

  if (Serial.available() > 0) {  // 受信したデータが存在する
    char ch1 = Serial.read();    // 受信データを読み込む
    Serial.print(ch1);           // 受信データを送りかえす
  }  //endif

}  //loop



0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?