diff --git a/installer.sh b/installer.sh index 22e6eda..a9b2490 100644 --- a/installer.sh +++ b/installer.sh @@ -47,16 +47,6 @@ echo -e "${green}GrovePi installeren...${reset}" cd /opt/grovepi/Script sudo bash install.sh -# Installeren i2c-tools -echo -e "${green}i2c-tools installeren...${reset}" -cd /opt -sudo git clone https://github.com/DexterInd/RFR_Tools.git -cd RFR_Tools/miscellaneous -sudo apt install python3-periphery -sudo pip3 install smbus-cffi --break-system-packages -sudo python3 setup.py build -sudo python3 setup.py install - # Installeren en aanpassen van WiringPi echo -e "${green}WiringPi installeren...${reset}" sudo apt remove wiringpi* -y @@ -125,6 +115,16 @@ sudo cp -r /opt/WiringPi /opt/WiringPi-Python/ sudo python3 setup.py build sudo python3 setup.py install +# Installeren i2c-tools +echo -e "${green}i2c-tools installeren...${reset}" +cd /opt +sudo git clone https://github.com/DexterInd/RFR_Tools.git +cd RFR_Tools/miscellaneous +sudo apt install python3-periphery +sudo pip3 install smbus-cffi --break-system-packages +sudo python3 setup.py build +sudo python3 setup.py install + # Interfaces aanzetten op de raspberry pi echo -e "${green}i2c en spi aanzetten...${reset}" sudo raspi-config nonint do_i2c 0