LoginSignup
0
1

More than 5 years have passed since last update.

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