3.95 inch display test

Recommended Posts

Donate and support the project!

Now I have connected this display using fbtft 




This is done as folows:

sudo modprobe fbtft_device name=flexpfb rotate=180 gpios=dc:110,reset:21,wr:1,cs:6,db00:3,db01:68,db02:71,db03:64,db04:2,db05:65,db06:66,db07:67

sudo modprobe flexfb width=320 height=480 buswidth=8 init=-1,0x11,-2,200,-1,0x36,-1,0x3A,0x05,-1,0x36,0x48,-1,0x13,-1,0x29,-1,0x2C,-3

and test picture:

sudo fbi -d /dev/fb8 -T 1 -noverbose -a example.jpg


sudo apt-get install -y mplayer

sudo SDL_VIDEODRIVER=fbcon SDL_FBDEV=/dev/fb8 mplayer -vo sdl -framedrop example.mpg

Why it is extremaly slow ?  ( 1 frame pre second)

Some hint?


Link to post
Share on other sites

First thank you very much. This is what I was looking for , for like a few months.

But why the output is in portrait mode ? I tried both by playing wih rotate , width , hieght in modprobe but I could not change it to landscape mode. I also tried to change X11/xorg.conf with no luck.

Can you tell me how to change display orientation from portrait to landscape?


Link to post
Share on other sites

Thank you for your input on the pins/ init sequence. I was trying a different set of pins/init sequence thinking the controller was a different one. There doesnt seem to be much information in aliexpress. Is there any documentation somewhere that I can use to understand on how this init sequence needs to be formatted and significance of the values? I know what -1, -2 and -3 mean, but not sure about the hex and int values in sequence.


BTW, I would also like to know how to manipulate 0x36 register. :)

Link to post
Share on other sites

Thanks a lot. I kinda figured out how to change 0x36 register.


it seems I can see it in the init params, like 0x36 followed by another hex value.


The hex value can be one of the below ones based on an issue discussion in fbtft support. (I'm yet to even try these ones to see how it works.)

 hexvalue rotatevalue result

0x28 0 Horizontal

0xF8 0 Horizontal

0x48 90 Vertical

0x84 90 Vertical


They seem to work in conjuction with rotate values passed to fbtft_device modprobe. I once again thank Mariuszb for your help :) :) :) :) :) :)

Link to post
Share on other sites
This topic is now closed to further replies.