Skip to content
nopnop2002 edited this page May 6, 2017 · 43 revisions

Welcome to the ili9325_rpi wiki!

It's possible to use this module as a FrameBuffer device of RaspberryPi.

Wirering

TFT Rpi
LCD_RST -- Pin#7
LCD_CS -- Pin#3
LCD_RS -- Pin#5
LCD_WR -- Pin#24
LCD_RD -- Pin#26
LCD_D0 -- Pin#29
LCD_D1 -- Pin#31
LCD_D2 -- Pin#33
LCD_D3 -- Pin#35
LCD_D4 -- Pin#37
LCD_D5 -- Pin#32
LCD_D6 -- Pin#36
LCD_D7 -- Pin#38
5V -- 5V
GND -- GND

Vertical writing

sudo modprobe fbtft_device name=flexpfb \ gpios=reset:4,dc:3,wr:8,cs:2,db00:5,db01:6,db02:13,db03:19,db04:26,db05:12,db06:16,db07:20

sudo modprobe flexfb width=240 height=320 regwidth=16 setaddrwin=1 init=\
-1,0x00E3,0x3008,-1,0x00E7,0x0012,-1,0x00EF,0x1231,\
-1,0x0001,0x0100,-1,0x0002,0x0700,-1,0x0003,0x1030,\
-1,0x0004,0x0000,-1,0x0008,0x0207,-1,0x0009,0x0000,\
-1,0x000A,0x0000,-1,0x000C,0x0000,-1,0x000D,0x0000,\
-1,0x000F,0x0000,-1,0x0010,0x0000,-1,0x0011,0x0007,\
-1,0x0012,0x0000,-1,0x0013,0x0000,-2,200,\ -1,0x0010,0x1690,-1,0x0011,0x0223,-2,50,\ -1,0x0012,0x000D,-2,50,-1,0x0013,0x1200,\ -1,0x0029,0x000A,-1,0x002B,0x000C,-2,50,\ -1,0x0020,0x0000,-1,0x0021,0x0000,-1,0x0030,0x0000,\ -1,0x0031,0x0506,-1,0x0032,0x0104,-1,0x0035,0x0207,\ -1,0x0036,0x000F,-1,0x0037,0x0306,-1,0x0038,0x0102,\ -1,0x0039,0x0707,-1,0x003C,0x0702,-1,0x003D,0x1604,\ -1,0x0050,0x0000,-1,0x0051,0x00EF,-1,0x0052,0x0000,\ -1,0x0053,0x013F,-1,0x0060,0xA700,-1,0x0061,0x0001,\ -1,0x006A,0x0000,-1,0x0080,0x0000,-1,0x0081,0x0000,\ -1,0x0082,0x0000,-1,0x0083,0x0000,-1,0x0084,0x0000,\ -1,0x0085,0x0000,-1,0x0090,0x0010,-1,0x0092,0x0600,\ -1,0x0007,0x0133,-3

Horizontal writing

sudo modprobe fbtft_device name=flexpfb rotate=90 \ gpios=reset:4,dc:3,wr:8,cs:2,db00:5,db01:6,db02:13,db03:19,db04:26,db05:12,db06:16,db07:20

sudo modprobe flexfb width=240 height=320 regwidth=16 setaddrwin=1 init=\ -1,0x00E3,0x3008,-1,0x00E7,0x0012,-1,0x00EF,0x1231,\ -1,0x0001,0x0100,-1,0x0002,0x0700,-1,0x0003,0x1018,\ -1,0x0004,0x0000,-1,0x0008,0x0207,-1,0x0009,0x0000,\ -1,0x000A,0x0000,-1,0x000C,0x0000,-1,0x000D,0x0000,\ -1,0x000F,0x0000,-1,0x0010,0x0000,-1,0x0011,0x0007,\ -1,0x0012,0x0000,-1,0x0013,0x0000,-2,200,\ -1,0x0010,0x1690,-1,0x0011,0x0223,-2,50,\ -1,0x0012,0x000D,-2,50,-1,0x0013,0x1200,\ -1,0x0029,0x000A,-1,0x002B,0x000C,-2,50,\ -1,0x0020,0x0000,-1,0x0021,0x0000,-1,0x0030,0x0000,\ -1,0x0031,0x0506,-1,0x0032,0x0104,-1,0x0035,0x0207,\ -1,0x0036,0x000F,-1,0x0037,0x0306,-1,0x0038,0x0102,\ -1,0x0039,0x0707,-1,0x003C,0x0702,-1,0x003D,0x1604,\ -1,0x0050,0x0000,-1,0x0051,0x00EF,-1,0x0052,0x0000,\ -1,0x0053,0x013F,-1,0x0060,0xA700,-1,0x0061,0x0001,\ -1,0x006A,0x0000,-1,0x0080,0x0000,-1,0x0081,0x0000,\ -1,0x0082,0x0000,-1,0x0083,0x0000,-1,0x0084,0x0000,\ -1,0x0085,0x0000,-1,0x0090,0x0010,-1,0x0092,0x0600,\ -1,0x0007,0x0133,-3


It's possible to use this module as a FrameBuffer device of OrangePi.

Wirering

TFT Opi
LCD_RST -- Pin#7
LCD_CS -- Pin#3
LCD_RS -- Pin#5
LCD_WR -- Pin#26
LCD_RD -- Pin#28
LCD_D0 -- Pin#29
LCD_D1 -- Pin#31
LCD_D2 -- Pin#33
LCD_D3 -- Pin#35
LCD_D4 -- Pin#37
LCD_D5 -- Pin#32
LCD_D6 -- Pin#36
LCD_D7 -- Pin#38
5V -- 5V
GND -- GND

Vertical writing

sudo modprobe fbtft_device name=flexpfb
gpios=reset:6,dc:11,wr:21,cs:12,db00:7,db01:8,db02:9,db03:10,db04:20,db05:200,db06:201,db07:198

sudo modprobe flexfb width=240 height=320 regwidth=16 setaddrwin=1 init=
-1,0x00E3,0x3008,-1,0x00E7,0x0012,-1,0x00EF,0x1231,
-1,0x0001,0x0100,-1,0x0002,0x0700,-1,0x0003,0x1030,
-1,0x0004,0x0000,-1,0x0008,0x0207,-1,0x0009,0x0000,
-1,0x000A,0x0000,-1,0x000C,0x0000,-1,0x000D,0x0000,
-1,0x000F,0x0000,-1,0x0010,0x0000,-1,0x0011,0x0007,
-1,0x0012,0x0000,-1,0x0013,0x0000,-2,200,
-1,0x0010,0x1690,-1,0x0011,0x0223,-2,50,
-1,0x0012,0x000D,-2,50,-1,0x0013,0x1200,
-1,0x0029,0x000A,-1,0x002B,0x000C,-2,50,
-1,0x0020,0x0000,-1,0x0021,0x0000,-1,0x0030,0x0000,
-1,0x0031,0x0506,-1,0x0032,0x0104,-1,0x0035,0x0207,
-1,0x0036,0x000F,-1,0x0037,0x0306,-1,0x0038,0x0102,
-1,0x0039,0x0707,-1,0x003C,0x0702,-1,0x003D,0x1604,
-1,0x0050,0x0000,-1,0x0051,0x00EF,-1,0x0052,0x0000,
-1,0x0053,0x013F,-1,0x0060,0xA700,-1,0x0061,0x0001,
-1,0x006A,0x0000,-1,0x0080,0x0000,-1,0x0081,0x0000,
-1,0x0082,0x0000,-1,0x0083,0x0000,-1,0x0084,0x0000,
-1,0x0085,0x0000,-1,0x0090,0x0010,-1,0x0092,0x0600,
-1,0x0007,0x0133,-3

Horizontal writing

sudo modprobe fbtft_device name=flexpfb rotate=90
gpios=reset:6,dc:11,wr:21,cs:12,db00:7,db01:8,db02:9,db03:10,db04:20,db05:200,db06:201,db07:198

sudo modprobe flexfb width=240 height=320 regwidth=16 setaddrwin=1 init=
-1,0x00E3,0x3008,-1,0x00E7,0x0012,-1,0x00EF,0x1231,
-1,0x0001,0x0100,-1,0x0002,0x0700,-1,0x0003,0x1018,
-1,0x0004,0x0000,-1,0x0008,0x0207,-1,0x0009,0x0000,
-1,0x000A,0x0000,-1,0x000C,0x0000,-1,0x000D,0x0000,
-1,0x000F,0x0000,-1,0x0010,0x0000,-1,0x0011,0x0007,
-1,0x0012,0x0000,-1,0x0013,0x0000,-2,200,
-1,0x0010,0x1690,-1,0x0011,0x0223,-2,50,
-1,0x0012,0x000D,-2,50,-1,0x0013,0x1200,
-1,0x0029,0x000A,-1,0x002B,0x000C,-2,50,
-1,0x0020,0x0000,-1,0x0021,0x0000,-1,0x0030,0x0000,
-1,0x0031,0x0506,-1,0x0032,0x0104,-1,0x0035,0x0207,
-1,0x0036,0x000F,-1,0x0037,0x0306,-1,0x0038,0x0102,
-1,0x0039,0x0707,-1,0x003C,0x0702,-1,0x003D,0x1604,
-1,0x0050,0x0000,-1,0x0051,0x00EF,-1,0x0052,0x0000,
-1,0x0053,0x013F,-1,0x0060,0xA700,-1,0x0061,0x0001,
-1,0x006A,0x0000,-1,0x0080,0x0000,-1,0x0081,0x0000,
-1,0x0082,0x0000,-1,0x0083,0x0000,-1,0x0084,0x0000,
-1,0x0085,0x0000,-1,0x0090,0x0010,-1,0x0092,0x0600,
-1,0x0007,0x0133,-3

Clone this wiki locally