0
1

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 5 years have passed since last update.

micro:bit / microbitAdvent Calendar 2018

Day 8

micro:bitであえての有線シリアル通信を使う

Last updated at Posted at 2018-12-07

image.png

#内容
micro:bitにはBluetooth(BLE)を搭載しているため相互通信にはそちらを使うのがシンプルで便利です。
しかし、他製品との通信などを想定し、シリアルも試してみました。

#端子の接続
micro:bit A   GND  P0  P1
         |   |   |
micro:bit B   GND  P1  P0

#動画

#サンプルコード
Aボタンを押すと相手側にAが表示されます。
serial通信.PNG

#謎
最初にボタンを押しても動作せず、2回目で動作する
3回目のボタンを押す場合は13秒程度間隔を空けないと動作しない

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?