Raspberry Pi 4はBluetoothを内蔵しているので、Bluetoothでmicro:bitと接続してみる。 microbitのプログラム Bluetoothのサービス開始だけをしておく。 そしてペアリングしなくてもコネクションできるように設定するために、 プロジェクトの設定から No Paring Required: Anyone can connect via Bluetooth.を有効にしておく。 Raspberry Pi PythonからBluetoothを使うためのbluepyモジュールをインストールする。 % sudo pip3 install bluepy micro:bitのアドレスを探す。 プログラムはgithubにも置いておく import bluepy scanner = bluepy.btle.Scanner(0) devices = scanner.