手動でインストールする¶
aptリストを更新する。
sudo apt-get update
python-smbusをインストールする。
sudo pip3 install smbus2
PiCarモジュールをインストールする。
cd~
git clone --recursive https://github.com/sunfounder/SunFounder_PiCar.git
cd SunFounder_PiCar
python3 setup.py install
I2Cを作動させる。
/boot/config.txtファイルを編集する
sudo nano /boot/config.txt
各行の前の "#" は、スケッチでは有効にならない以下の内容をコメント化するためのものである。I2C構成部分もデフォルトでコメント化されている。ファイルの最後に次のコードを追加するか、または関連する行の先頭にあるポンド記号 "#" を削除する。どちらもいい。
dtparam=i2c_arm=on
再起動する。
sudo reboot