initial version of files
This commit is contained in:
30
install.sh
Normal file
30
install.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
echo
|
||||
echo "************************************************************************************"
|
||||
echo "************************************************************************************"
|
||||
echo "** Install OLED Display for Raspberry Pi"
|
||||
echo "************************************************************************************"
|
||||
echo "************************************************************************************"
|
||||
echo
|
||||
echo "I2C has to be enabled via raspi-config!"
|
||||
echo
|
||||
read -p "Press Enter to continue or Ctrl+C to abort"
|
||||
|
||||
#install necessary packages
|
||||
sudo apt update
|
||||
sudo apt install -y i2c-tools
|
||||
# check connection via
|
||||
i2cdetect -y 1
|
||||
# if 3C is enabled, then connection ok
|
||||
echo
|
||||
echo "If 3C is enabled, then I2C connection is ok"
|
||||
echo
|
||||
read -p "Press Enter to continue or Ctrl+C to abort"
|
||||
|
||||
|
||||
sudo apt install python3-dev libffi-dev libssl-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libopenjp2-7 libtiff5 -y
|
||||
sudo apt install python3-rpi.gpio python3-pip -y
|
||||
sudo apt install git -y
|
||||
|
||||
sudo -H pip3 install luma.oled --break-system-packages
|
||||
sudo -H pip3 install psutils --break-system-packages
|
||||
Reference in New Issue
Block a user