A small display, again one of those LCD screens attached via SPI. slow refresh, OS support frozen in time. Instructions that worked for me, April 2020. https://www.itead.cc/blog/raspberry-pi-b-2-8-tft-add-on-v2-0-touch-function-realizing Download Raspbian-2015-02-16.img into SD card, then launch Raspberry Pi B Its old Wheezy Debian, unsupported and outdated, so make sure you change to the legacy update, the official repository moved on. But there is a legacy repository! Replace this line in /etc/apt/sources.list deb http://legacy.raspbian.org/raspbian/ wheezy main contrib non-free rpi Now you can do the sudo apt-get update Do the usual raspi_config, add SPI support sudo nano /etc/modprobe.d/raspi-blacklist.conf Comment the mask of spi out #blacklist spi-bcm2708 Connect Raspberry Pi B+ 2.8 TFT Add-on V2.0 to Raspberry Pi B+ correctly sudo apt-get install xinput evtest tslib libts-bin Download the fbtft driver, and you may need to run the following command three times: sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update Finally get the codes: *** Running pre-install script Work around rpi-update issue #106 *** Updating firmware *** Updating kernel modules *** depmod 3.12.21+ *** Updating VideoCore libraries *** Using HardFP libraries *** Updating SDK *** Running ldconfig *** Storing current firmware revision *** Running post-install script /lib/firmware *** Deleting downloaded files *** Syncing changes to disk *** If no errors appeared, your firmware was successfully updated to b77683205688d3f6ae2b32a3c7 f4e63de1c06a5d *** A reboot is needed to activate the new firmware By now,you need to reboot your Raspberry Pi B+ sudo reboot sudo touch /usr/share/X11/xorg.conf.d/99-fbdev.conf Configure the file /usr/share/X11/xorg.conf.d/99-fbdev.conf sudo nano /usr/share/X11/xorg.conf.d/99-fbdev.conf Section "Device" Identifier "itdb28" Driver "fbdev" Option "fbdev" "/dev/fb1" EndSection sudo modprobe fbtft_device name=itdb28 gpios=reset:5,dc:6,wr:12,cs:13,db00:20,db01:21,db02:22,d b03:23,db04:24,db05:25,db06:26,db07:27 rotate=90 fps=50 Add the following contents to file /boot/config.txt dtoverlay=ads7846,cs=1,speed=2000000,penirq=17,swapxy=1,xmin=230,xmax=3850,ymin=190,ymax=3850,p max=255,xohms=100 startx & (you may have to reboot) Load the touch driver 1.Add the following contents to file /boot/config.txt dtoverlay=ads7846,cs=1,speed=2000000,penirq=17,swapxy=1,xmin=230,xmax=3850,ymin=190,ymax=3850,pmax=255,xohms=100 2.Reboot Raspberry Pi B+ sudo reboot 3.Load TFT display driver sudo modprobe fbtft_device name=itdb28 gpios=reset:5,dc:6,wr:12,cs:13,db00:20,db01:21,db02:22,db03:23,db04:24,db05:25,db06:26,db07:27 rotate=90 fps=50 4.start up X Server startx & Adjust the X&Y directions of this touch screen DISPLAY=:0 xinput --set-prop 'ADS7846 Touchscreen' 'Evdev Axis Inversion' 0 1 Test ·Check the event’s number which is in accord with the touch screen. cat /proc/bus/input/devices This event’s number here is event3, then you need to execute the following command to do the calibration and test touch screen according to the event’s number you’ve got. When do calibrating, you’d better use touch pen to click the cross’s center unless you want a rough calibration result. ·Touch screen calibration sudo TSLIB_FBDEVICE=/dev/fb1 TSLIB_TSDEVICE=/dev/input/event3 ts_calibrate
Related posts:
Pi operating systems
http://www.hongkiat.com/blog/pi-operating-systems/
http://www.hongkiat.com/blog/pi-operating-systems/
Raspberry Pi Camera Module
The Raspberry Camera Module is a giant success. Flexible, high quality, well supported. I have shown you already tow pos...
The Raspberry Camera Module is a giant success. Flexible, high quality, well supported. I have shown you already tow pos...
First steps with the Raspberry Pi 2 and the new touchscreen
Not my first steps with the Raspberry Pi, I owned my first Pi since 2012, one of the first batch produced. Now I have ac...
Not my first steps with the Raspberry Pi, I owned my first Pi since 2012, one of the first batch produced. Now I have ac...
Network scanning: find your RPi
When using a Raspberry Pi in your network it is very convenient to let it use DHCP to assign IP addresses, Setting up wi...
When using a Raspberry Pi in your network it is very convenient to let it use DHCP to assign IP addresses, Setting up wi...