Update installer.sh
This commit is contained in:
parent
ab48b3df2e
commit
0c8fdf398e
1 changed files with 13 additions and 5 deletions
18
installer.sh
18
installer.sh
|
|
@ -25,8 +25,11 @@ sudo raspi-config nonint do_i2c 0
|
|||
# Installeren van avrdude
|
||||
echo -e "${green}Avrdude installeren...${reset}"
|
||||
sudo apt-get install bison flex byacc -y
|
||||
sudo rm -rf /opt/avrdude-7.0
|
||||
cd /opt
|
||||
wget http://download.savannah.gnu.org/releases/avrdude/avrdude-7.0.tar.gz
|
||||
tar xfv avrdude-7.0.tar.gz && cd avrdude-7.0/
|
||||
sudo tar xfv avrdude-7.0.tar.gz
|
||||
cd avrdude-7.0/
|
||||
./configure --enable-linuxgpio
|
||||
make
|
||||
sudo make install
|
||||
|
|
@ -58,8 +61,10 @@ sudo python3 setup.py build
|
|||
sudo python3 setup.py install
|
||||
|
||||
# Installeren en aanpassen van WiringPi
|
||||
cd /home/pi && git clone https://github.com/WiringPi/WiringPi
|
||||
cd WiringPi && sudo rm wiringPi/wiringPiLegacy.c
|
||||
cd /home/pi
|
||||
git clone https://github.com/WiringPi/WiringPi
|
||||
cd WiringPi
|
||||
sudo rm wiringPi/wiringPiLegacy.c
|
||||
cat > wiringPi/wiringPiLegacy.c <<EOL
|
||||
#include <wiringPi.h>
|
||||
#include "wiringPiLegacy.h"
|
||||
|
|
@ -107,8 +112,11 @@ int piGpioLayoutLegacy(void) {
|
|||
EOL
|
||||
|
||||
# Installeren van WiringPi python
|
||||
cd /home/pi && git clone git clone --recursive https://github.com/WiringPi/WiringPi-Python.git
|
||||
cd WiringPi-Python && sudo rm -rf WiringPi && sudo cp -r /home/pi/WiringPi /home/pi/WiringPi-Python/
|
||||
cd /home/pi
|
||||
git clone git clone --recursive https://github.com/WiringPi/WiringPi-Python.git
|
||||
cd WiringPi-Python
|
||||
sudo rm -rf WiringPi
|
||||
sudo cp -r /home/pi/WiringPi /home/pi/WiringPi-Python/
|
||||
sudo python3 setup.py build
|
||||
sudo python3 setup.py install
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue