Skip to content

FrameBuffer Setting to ILI9342

nopnop2002 edited this page Aug 5, 2017 · 13 revisions

for RPi

It can't work by ModelB+.
A reason isn't understood.

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 buswidth=8 init=\
-1,0x28,-2,20,\
-1,0x36,0x08,\
-1,0x3A,0x55,\
-1,0x21,\
-1,0x11,-2,120,\
-1,0x29,-2,20,\
-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 buswidth=8 init=\
-1,0x28,-2,20,\
-1,0x36,0x68,\
-1,0x3A,0x55,\
-1,0x21,\
-1,0x11,-2,120,\
-1,0x29,-2,20,\
-3


OrangePi ZERO + TFT + ILI9342

ili9342

Clone this wiki locally