mariuszb Posted June 8, 2016 Posted June 8, 2016 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 Just compile and run displayTFT.c file (display shows also CPU temperature ) 3
mariuszb Posted June 20, 2016 Author Posted June 20, 2016 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 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? 2
A-P Posted June 27, 2016 Posted June 27, 2016 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.
mariuszb Posted June 28, 2016 Author Posted June 28, 2016 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
arunvir86 Posted July 3, 2016 Posted July 3, 2016 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.
arunvir86 Posted July 4, 2016 Posted July 4, 2016 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 :) :) :)
mariuszb Posted July 4, 2016 Author Posted July 4, 2016 -1 It means that the next command is then followed by the contents (from ILI9488 pdf)
Mohammad Mubin Posted May 25, 2017 Posted May 25, 2017 hi i have a similar buts its for ardunio and got every pin in accept lcd_rd lcd_wr lcd_rs and how can dc:110 < what layout of the pin is that? i also do not understand this my english is not good can you help me a little? thanks
martinayotte Posted May 25, 2017 Posted May 25, 2017 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.
Mohammad Mubin Posted May 26, 2017 Posted May 26, 2017 seems parallel to me dc:110,reset:21,wr:1,cs:6,db00:3,db01:68,db02:71,db03:64,db04:2,db05:65,db06:66,db07:67
Recommended Posts