第一步:upgrade dtc comiler ro enable SPI
wget -c https://raw.githubusercontent.com/RobertCNelson/tools/master/pkgs/dtc.sh
chmod +x dtc.sh
./dtc.sh
参考网址:https://learn.adafruit.com/introduction-to-the-beaglebone-black-device-tree/compiling-an-overlay
第二步:install Adafruit‘s BeagleBone IO Python Library
sudo ntpdate pool.ntp.org
sudo apt-get update
sudo apt-get install build-essential python-dev python-pip python-smbus -y
git clone git://github.com/adafruit/adafruit-beaglebone-io-python.git
cd adafruit-beaglebone-io-python
sudo python setup.py install
cd ..
sudo rm -rf adafruit-beaglebone-io-python
参考网址:https://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/installation-on-ubuntu
时间: 2024-11-04 11:06:46