Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling SPI bus automatically #19

Open
thortex opened this issue Sep 15, 2016 · 0 comments
Open

Enabling SPI bus automatically #19

thortex opened this issue Sep 15, 2016 · 0 comments

Comments

@thortex
Copy link
Owner

thortex commented Sep 15, 2016

r=`grep 'spi=on' /boot/config.txt | grep -v "^#"`
if [ "$r" != "" ] ; then
     sed -i 's/^dtparam=spi=off/dtparam=spi=on/;' /boot/config.txt
fi

Note that 'dtparam' key allow multiple parameters list:

dtparam=i2c_arm=on,spi=on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant