initial version of files

This commit is contained in:
2024-06-04 21:29:32 +02:00
parent 53d8fd7964
commit 3f1fe8fab6
4 changed files with 261 additions and 0 deletions

30
install.sh Normal file
View 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