Adafruit 3.5 tft Topic is solved

Suggestions for features and software you would like to see in DietPi, goes here.
Post Reply
Warmbadger
Posts: 4
Joined: Mon Nov 19, 2018 1:17 am

Adafruit 3.5 tft

Post by Warmbadger »

Wanted to throw out a request for the adafruit 3.5 tft display. Spent my weekend trying to get it to run with a variety of install options but always came up empty.

Dietpi is very usable without the feature but it sure would be cool to have it all display on the tft.

Thanks
User avatar
MichaIng
Site Admin
Posts: 2421
Joined: Sat Nov 18, 2017 6:21 pm

Re: Adafruit 3.5 tft

Post by MichaIng »

Did you try it with RPi or which device?
Warmbadger
Posts: 4
Joined: Mon Nov 19, 2018 1:17 am

Re: Adafruit 3.5 tft

Post by Warmbadger »

Ya I tried to get it going for the Raspberry Pi.
https://www.adafruit.com/product/2097
jackspace
Posts: 1
Joined: Mon Dec 17, 2018 2:48 am

Re: Adafruit 3.5 tft

Post by jackspace »

Add me to the list, in my case I use the 2.8" TFT from Adafruit with my Raspberry Pi 3B+. I managed to get through the Adafruit driver install by doing the following as root:
  • First I went through the adafruit-pitft.sh script and replaced references to "/home/pi" with "/home/dietpi"
  • Next I installed setuptools:

    Code: Select all

    sudo pip install -U setuptools
  • Then I installed python-dev:

    Code: Select all

    sudo apt-get install python-dev
  • When I started running into issues during the PIP install of the driver, I was able to actually get through it with no problems by first installing these common dependencies:

    Code: Select all

    sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
This allowed me to get through the install script without any errors. However, when I reboot, I'm still not seeing anything on the TFT.

Any pointers on how to get this resolved without having to switch away from Dietpi? I really love this OS.
dpinewbie
Posts: 1
Joined: Sun Nov 10, 2019 6:15 am

Re: Adafruit 3.5 tft

Post by dpinewbie »

Hi I am having the same issue.

I have run the TFT install script the when I reboot, it is just not showing on the TFT screen. Screen is on but completely blank. Anyone figure this one out?
macstibs
Posts: 1
Joined: Wed Dec 04, 2019 10:53 pm

Re: Adafruit 3.5 tft

Post by macstibs »

Add me to the list. Got an RPI B up and running on Dietpi this AM. Cloned the git from Waveshare and ran the driver install but no love.
User avatar
MichaIng
Site Admin
Posts: 2421
Joined: Sat Nov 18, 2017 6:21 pm

Re: Adafruit 3.5 tft

Post by MichaIng »

Okay found the script: https://raw.githubusercontent.com/adafr ... t-pitft.sh

Outdated and adds forcefully an outdated Raspbian mirrordirector that is changes by RPi packages again. Tailored for Raspbian. Strange that it does not add the build requirements then. I'll see if I find time to contribute to it to make it better compatible with non standard Raspbian distros. If anyone wants to help, is welcome of course :).

Ahh btw is this dtoverlay "pitft35-resistive", shipped with RPi firmware, not already functional?

See bottom of this post: https://github.com/MichaIng/DietPi/issu ... -548343771
pravpiuser
Posts: 1
Joined: Thu Aug 06, 2020 8:20 am

Re: Adafruit 3.5 tft

Post by pravpiuser »

I'm able to get this working with a Pi Zero and Adafruit Mini PiTFT. Here are the steps I followed:
1. Download the Adafruit script as mentioned here: https://learn.adafruit.com/adafruit-min ... le-install

Code: Select all

cd ~
git clone https://github.com/adafruit/Raspberry-Pi-Installer-Scripts.git
cd Raspberry-Pi-Installer-Scripts
chmod +x adafruit-pitft.sh
2. After following all the steps below, run the script with the homedir parameter: ./adafruit-pitft.sh -u /home/dietpi
3. Do a apt-get install setuptools
4. Do apt-get install wheel
5. Go to dietpi-software > software additional software > Python Pip
(I also remember running apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk from jackspace above). From dietpi-config I have also enabled I2C and in the Display Options clicked on LCD panel and selected the waveshare32 option.
6. Then I got an error about gcc-arm-linux-gnueabihf. Did apt-get install gcc-arm-linux-gnueabihf
7. After that I got a make error. Did sudo apt-get install build-essential
8. Do apt-get install raspi-config
9. Do a adduser pi and set its password
10. Make sure raspi-config is working fine
11. Got an error related to rc.local. created /etc/rc.local, made it an executable chmod +x /etc/rc.local, edited it and added following lines:

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi

exit 0
12. Start rc.local service: systemctl start rc-local and make sure that it is running: systemctl status rc-local
13. Finally run ./adafruit-pitft.sh -u /home/dietpi
14. If everything is successful, script asks for a reboot, and terminal display is shown on TFT
User avatar
Joulinar
Posts: 2549
Joined: Sat Nov 16, 2019 12:49 am

Re: Adafruit 3.5 tft

Post by Joulinar »

Thx for sharing your solution. Much appreciated.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply