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
|
# Installeren van avrdude
|
||||||
echo -e "${green}Avrdude installeren...${reset}"
|
echo -e "${green}Avrdude installeren...${reset}"
|
||||||
sudo apt-get install bison flex byacc -y
|
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
|
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
|
./configure --enable-linuxgpio
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
@ -58,8 +61,10 @@ sudo python3 setup.py build
|
||||||
sudo python3 setup.py install
|
sudo python3 setup.py install
|
||||||
|
|
||||||
# Installeren en aanpassen van WiringPi
|
# Installeren en aanpassen van WiringPi
|
||||||
cd /home/pi && git clone https://github.com/WiringPi/WiringPi
|
cd /home/pi
|
||||||
cd WiringPi && sudo rm wiringPi/wiringPiLegacy.c
|
git clone https://github.com/WiringPi/WiringPi
|
||||||
|
cd WiringPi
|
||||||
|
sudo rm wiringPi/wiringPiLegacy.c
|
||||||
cat > wiringPi/wiringPiLegacy.c <<EOL
|
cat > wiringPi/wiringPiLegacy.c <<EOL
|
||||||
#include <wiringPi.h>
|
#include <wiringPi.h>
|
||||||
#include "wiringPiLegacy.h"
|
#include "wiringPiLegacy.h"
|
||||||
|
|
@ -107,8 +112,11 @@ int piGpioLayoutLegacy(void) {
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
# Installeren van WiringPi python
|
# Installeren van WiringPi python
|
||||||
cd /home/pi && git clone git clone --recursive https://github.com/WiringPi/WiringPi-Python.git
|
cd /home/pi
|
||||||
cd WiringPi-Python && sudo rm -rf WiringPi && sudo cp -r /home/pi/WiringPi /home/pi/WiringPi-Python/
|
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 build
|
||||||
sudo python3 setup.py install
|
sudo python3 setup.py install
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue