I’ve remounted my TFT touch display and connected it to another Raspberry Pi. During the installation process I realized, that the FBTFT Kernel is now Device Tree enabled, this makes the installation and configuration process a lot easier. (https://github.com/notro/fbtft/wiki#install)
Therefore you only need to install the FBTFT enabled Firmware (https://github.com/notro/rpi-firmware) and after that you can enable the TFT display HY-28B:
Add the following statement to /boot/config.txt to enable the hy28b overlay:
The overlays can be found on https://github.com/notro/rpi-firmware/tree/master/overlays.
To enable the console output on the display you had to add the following to the first line of /boot/cmdline.txt:
After a reboot the display should be recognized and working. You can check it in dmesg.
To use the display with pygame you need to install the following packages and calibrate the touchpanel:
apt-get update apt-get install libts-bin evtest xinput python-dev python-pip pip install evdev sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event0 ts_calibrate
With the integration of the FBTFT drivers in the Raspberry Pi kernel (https://github.com/notro/fbtft/wiki) it is no longer neccessary to install notro’s FBTFT kernel.
I run in some problems with the display showing no content. The backlight was on but there were no image visible. I was able to fix the problem by setting the GPIO configuration fixed and not automatically:
dtoverlay=hy28b, rotate=90, resetgpio=25, ledgpio=18