-
Notifications
You must be signed in to change notification settings - Fork 15
FrameBuffer Setting To ILI9481
nopnop2002 edited this page Dec 3, 2019
·
12 revisions
$ sudo modprobe flexfb width=480 height=320 buswidth=8 init=\
-1,0x01,-2,5,\
-1,0xD0,0x07,0x42,0x18,\
-1,0xD1,0x00,0x07,0x18,\
-1,0xD2,0x01,0x02,\
-1,0xC0,0x10,0x3B,0x00,0x02,0x11,\
-1,0xC5,0x03,\
-1,0x36,0x28,\
-1,0x3A,0x55,\
-1,0x11,-2,120,\
-1,0x29,-2,20,\
-3
$ 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
$ fbset -i -fb /dev/fb1
mode "480x320"
geometry 480 320 480 320 16
timings 0 0 0 0 0 0 0
nonstd 1
rgba 5/11,6/5,5/0,0/0
endmode
Frame buffer device information:
Name : flexfb
Address : 0
Size : 307200
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 0
YPanStep : 0
YWrapStep : 0
LineLength : 960
Accelerator : No
$ con2fbmap 1 1
$ sudo modprobe flexfb width=480 height=320 buswidth=8 init=\
-1,0x01,-2,5,\
-1,0xD0,0x07,0x42,0x18,\
-1,0xD1,0x00,0x07,0x18,\
-1,0xD2,0x01,0x02,\
-1,0xC0,0x10,0x3B,0x00,0x02,0x11,\
-1,0xC5,0x03,\
-1,0x36,0x48,\
-1,0x3A,0x55,\
-1,0x11,-2,120,\
-1,0x29,-2,20,\
-3
$ 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
$ fbset -i -fb /dev/fb1
mode "320x480"
geometry 320 480 320 480 16
timings 0 0 0 0 0 0 0
nonstd 1
rgba 5/11,6/5,5/0,0/0
endmode
Frame buffer device information:
Name : flexfb
Address : 0
Size : 307200
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 0
YPanStep : 0
YWrapStep : 0
LineLength : 640
Accelerator : No
$ con2fbmap 1 1
$ sudo modprobe flexfb width=your_tft_width height=your_tft_height buswidth=8 init=\
-1,0x01,-2,5,\
-1,0xD0,0x07,0x42,0x18,\
-1,0xD1,0x00,0x07,0x18,\
-1,0xD2,0x01,0x02,\
-1,0xC0,0x10,0x3B,0x00,0x02,0x11,\
-1,0xC5,0x03,\
-1,0x36,0x38,\
-1,0x3A,0x55,\
-1,0x11,-2,120,\
-1,0x29,-2,20,\
-3 -3
$ 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
$ fbset -i -fb /dev/fb2
mode "480x320"
geometry 480 320 480 320 16
timings 0 0 0 0 0 0 0
nonstd 1
rgba 5/11,6/5,5/0,0/0
endmode
Frame buffer device information:
Name : flexfb
Address : 0
Size : 307200
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 0
YPanStep : 0
YWrapStep : 0
LineLength : 960
Accelerator : No
$ con2fbmap 1 2
$ sudo modprobe flexfb width=your_tft_width height=your_tft_height buswidth=8 init=\
-1,0x01,-2,5,\
-1,0xD0,0x07,0x42,0x18,\
-1,0xD1,0x00,0x07,0x18,\
-1,0xD2,0x01,0x02,\
-1,0xC0,0x10,0x3B,0x00,0x02,0x11,\
-1,0xC5,0x03,\
-1,0x36,0x58,\
-1,0x3A,0x55,\
-1,0x11,-2,120,\
-1,0x29,-2,20,\
-3
$ 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
$ fbset -i -fb /dev/fb2
mode "320x480"
geometry 320 480 320 480 16
timings 0 0 0 0 0 0 0
nonstd 1
rgba 5/11,6/5,5/0,0/0
endmode
Frame buffer device information:
Name : flexfb
Address : 0
Size : 307200
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 0
YPanStep : 0
YWrapStep : 0
LineLength : 640
Accelerator : No
$ con2fbmap 1 2
$ sudo modprobe flexfb width=480 height=320 buswidth=8 init=\
-1,0x01,-2,5,\
-1,0xD0,0x07,0x42,0x18,\
-1,0xD1,0x00,0x07,0x18,\
-1,0xD2,0x01,0x02,\
-1,0xC0,0x10,0x3B,0x00,0x02,0x11,\
-1,0xC5,0x03,\
-1,0x36,0xAA,\
-1,0x3A,0x55,\
-1,0x11,-2,120,\
-1,0x29,-2,20,\
-3
$ sudo modprobe flexfb width=480 height=320 buswidth=8 init=\
-1,0x01,-2,5,\
-1,0xD0,0x07,0x42,0x18,\
-1,0xD1,0x00,0x07,0x18,\
-1,0xD2,0x01,0x02,\
-1,0xC0,0x10,0x3B,0x00,0x02,0x11,\
-1,0xC5,0x03,\
-1,0x36,0x48,\
-1,0x3A,0x55,\
-1,0x11,-2,120,\
-1,0x29,-2,20,\
-3
OrangePi Lite + TFT HAT + ILI9481