Raspberry Pi i2cdetect: command not found を修正する方法

問題:

Raspberry Pi(Raspbian)で i2cdetect を使用して I2C デバイスを検出しようとすると、次のエラーが表示されます:

i2cdetect_error_output.txt
$ i2cdetect
bash: i2cdetect: command not found

解決策

次を使用して i2c-tools をインストールします:

install_i2c_tools.sh
sudo apt -y install i2c-tools

i2c-tools をインストールした後、i2cdetect や i2cget などの関連ツールを使用できます。


同じカテゴリの類似記事をチェック: 組み込み Linux Raspberry Pi