ラズパイでシリアル通信の一つである1-Wire(one-wire)通信を有効にする手順です。
前提
ラズパイ:Raspberry pi 4B
OS:Raspbian GNU/Linux 10 (buster)
使用言語:python3
1-Wire通信有効化
コンフィグ変更画面を起動します。
# sudo raspi-config

5 Interfacing Options を選択します。

P7 1-Wire を選択します。

<Yes>を選択します。

<OK>を選択します。
ラズパイを再起動します。
確認
/boot/config.txtを確認し、末尾に以下の文言があれば設定完了です。
dtoverlay=w1-gpio
以上です。
コメント