Raspberry Pi Zero W: Difference between revisions

Line 89: Line 89:
sudo apt-get -y upgrade
sudo apt-get -y upgrade
sudo sed -i --follow-symlinks "s/^country=.*/country=JP/g" /etc/wpa_supplicant/wpa_supplicant.conf
sudo sed -i --follow-symlinks "s/^country=.*/country=JP/g" /etc/wpa_supplicant/wpa_supplicant.conf
sudo dtparam spi=on
sudo dtparam spi=on
sudo dtparam i2c_arm=on
sudo dtparam i2c_arm=on
sudo modprobe i2c_dev
sudo systemctl enable ssh
sudo systemctl enable ssh
sudo systemctl start ssh
sudo systemctl start ssh
sudo modprobe i2c_dev
sudo shutdown -r now
</syntaxhighlight>
 
<syntaxhighlight lang="bash" enclose="div">
sudo apt-get install i2c-tools
sudo apt-get install i2c-tools
sudo shutdown -r now
</syntaxhighlight>
</syntaxhighlight>
:MAKEDEV のエラーは無視してよい /dev/i2c-1 がすでにあるはず。
:MAKEDEV のエラーは無視してよい /dev/i2c-1 がすでにあるはず。