2.2 TFT LCD Display 240×320 for RaspberryPi

Pc board has additional 16 pins female header with other GPIO lines free for other uses and projects. Rev 2 – Pins 1 – 16

1 – VCC + 5V
2 – GND
3 – VCC + 3V3
4 – GPIO 14
5 – GPIO 15
6 – GPIO 23
7 – GPIO 07
8 – GPIO 02
9 – GPIO 03
10 – GPIO 04
11 – GPIO 17
12 – GPIO 27
13 – GPIO 22
14 – VCC + 5V
15 – GND
16 – VCC + 3V3

Driver installation:

Make sure your filesystem is expanded, if not use raspi-config:

Correct procedure to update system with tft support:

Update firmware: https://github.com/Hexxeh/rpi-update

Make directory rpi-update writable:

Since latest update DO NOT BACKUP MODULES DIRECTORY:
Rename and backup modules directory:

Enable SPI in raspi-blacklist.conf – comment out (#) the spi blacklist line

Install notro rpi-firmware update

To make module load at start-up add this line at the end:

To have the console start on the framebuffer with fonts VGA8X8 – edit /boot/cmdline.txt

at the end add:

It should look like this:

Other fonts: MINI4x6, VGA8x8, Acorn8x8, PEARL8x8, ProFont6x11, 7×14, VGA8x16, SUN8x16, 10×18, SUN12x22
fbcon=rotate:1 can be used to rotate the console. You can also use smaller fonts MINI4x6 (using small fonts w with cgminer – bitcoin miner)

tft lcd 2.2 bitcoin

Raspbian images from 2013-12-20  and newer , fbturbo was enabled by default :

comment out – put #

Shutdown raspberry Pi

disconnect power & power raspberry pi back

To start startx type:

Extras:
Install midnight commander:

Install cmatrix

Playing video 240×320 on tft using mplayer

Pick video on youtube, convert (you can use http://wap4.org/) to 240×320 , mp4 format, upload to home dir.

Install mplayer

# Install ffmpeg if you haven’t already

# Pick the correct framebuffer – mine is /dev/fb1:

WIRING: ILI9430C SPI

RPI Pin Display Driver gpio
21——MISIO———–GPIO09
12——LED————-GPIO18
23——SCK————-GPIO11
19——MOSI————GPIO10
18——D/C————-GPIO24
22——RESET———–GPIO25
24——CS————–GPIO08
6——-GND————-GND (-)
1——-VCC————-VCC +3V3

Resources:
https://github.com/notro/fbtft/wiki
https://github.com/notro/fbtft/wiki/LCD-Modules#adafruit-22

Incoming search terms:

  • raspberry pi 2 2 tft lcd
  • 2 2 tft spi 240x320 arduino lyberi
  • python spi tft
  • raspberry pi lcd tft 2 2
  • rotate fb0
  • set raspberry pi composite to 320 240