[Fixed] dtparam instead of device_tree_param
This commit is contained in:
parent
10a40321e1
commit
2a21e3887d
|
@ -39,7 +39,7 @@ if [ -e /home/pi/first_boot ]; then
|
||||||
|
|
||||||
|
|
||||||
# (2) Enable SPI device #
|
# (2) Enable SPI device #
|
||||||
echo "device_tree_param=spi=on" | sudo tee -a /boot/config.txt > /dev/null;
|
echo "dtparam=spi=on" | sudo tee -a /boot/config.txt > /dev/null;
|
||||||
echo "dtoverlay=spi-bcm2708" | sudo tee -a /boot/config.txt > /dev/null;
|
echo "dtoverlay=spi-bcm2708" | sudo tee -a /boot/config.txt > /dev/null;
|
||||||
|
|
||||||
# (3) Clone SPI python library #
|
# (3) Clone SPI python library #
|
||||||
|
|
Loading…
Reference in New Issue