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?

More than 3 years have passed since last update.

Arduino で Serial が動作しないと思ったら Serial1 を疑う。

Last updated at Posted at 2019-12-22

編集前タイトル: Arduino で Serial を受信しないと思ったら Serial1 を疑う。

環境

What's Next Pink (Arduino Micro 互換)

症状

Serial が何も受信しない

SoftwareSerial から RXピン データを与えてやっても,Serial.available() が0を返す。

原因

Arduino Micro の Serial は 0/1 番ピン (RX/TX ピン) とつながっていない。

解決方法

0/1 番ピン (RX/TX ピン)とつながっているのは Serial1 なのでこちらを使う。

参考資料

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?