Jump to content

3.95 inch display test


mariuszb

Recommended Posts

I plugged in and tested the 3.95 inch display with Orange Pi PC and Armbian Jessy.
It can be used for own use, this is only a test program  ;)

 

http://pl.aliexpress.com/item/Free-shipping-LCD-module-Pi-TFT-3-6-inch-for-raspberry-pi-display-screen/32236159766.html

 

https://github.com/flexiti/WiringOP

post-1292-0-41597800-1465379331_thumb.jpg

 

Just compile and run displayTFT.c  file (display shows also CPU temperature )

Link to comment
Share on other sites

Now I have connected this display using fbtft 

post-1292-0-44424200-1466415577_thumb.jpg

post-1292-0-24995700-1466429431_thumb.jpg

 

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

Video:

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 comment
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?

Thanks.

Link to comment
Share on other sites

Did You try manipulate of 0x36 register ? (now is value 0x48)

 

 

Ps.  

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

you have to be careful with fbi, remains in memory - how many times You call to as many copies

use eg.

 pkill -9 fbi
Link to comment
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 comment
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 comment
Share on other sites

Your display is not with a SPI interface, all transfers are done with parallel GPIOs.

So, don't expect been able to run it using frame buffer.

You can use GPIO library to drive it, but you are on your own displaying something from your own application.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines