Skip to content

FrameBuffer Setting to ILI9325

nopnop2002 edited this page Aug 5, 2017 · 6 revisions

Vertical writing for RPi

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

sudo modprobe flexfb width=your_tft_width height=your_tft_height 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 for RPi

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

sudo modprobe flexfb width=your_tft_width height=your_tft_height 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


Vertical writing for OPi

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=your_tft_width height=your_tft_height 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 for OPi

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=your_tft_width height=your_tft_height 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


OrangePi ZERO + TFT HAT + ILI9325

ili9325