Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

ILI9488 kind of works #473

Closed
turtiustrek opened this issue Jul 16, 2017 · 21 comments
Closed

ILI9488 kind of works #473

turtiustrek opened this issue Jul 16, 2017 · 21 comments

Comments

@turtiustrek
Copy link

hi guys i tried to attach a 3.5" mcu friend tft display which works great on ardunio but not so great on the pi

sudo modprobe fbtft_device custom name=flexpfb speed=48000000 fps=60 gpios=reset:20,dc:1,wr:3,cs:10,db00:0,db01:14,db02:2,db03:21,db04:18,db05:19,db06:8,db07:9

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

i edited the X11 config files to match it with the frame buffer and wrote startx
i also tried displaying images but i get the same thing
20170716_153948

Any help would be appreciated

@notro
Copy link
Owner

notro commented Jul 28, 2017

I would try lowering the speed

@turtiustrek
Copy link
Author

Thanks For your Response,but how low? like an exact value would be good

@notro
Copy link
Owner

notro commented Jul 30, 2017

Most controllers are rated at max 10MHz, but many can do 32MHz. It depends a lot on the wiring.

@r0neko
Copy link

r0neko commented Aug 6, 2017

Don't worry! I am working for support on the ILI9488! I am now fighting with compiling the kernel! When I will be done with the driver, I will post a fork(is this what you are calling it?) of the FBTFT Driver with ILI9488 support.

@r0neko
Copy link

r0neko commented Aug 6, 2017

And yup. That looks that the speed is too fast.
Lower it down or remove it completely!

@r0neko
Copy link

r0neko commented Aug 6, 2017

And the screen is the same(mine is bigger - 3.95 TFT Display). Mine works, but I need to compile the kernel with GPIO Optimizations.

@turtiustrek
Copy link
Author

I haven't tried lowering the speed because I am on vacation and forgot to bring a power cable (:P) and I am not on a raspberry pi but I am on a orange pi (Da DUM)

@turtiustrek
Copy link
Author

turtiustrek commented Aug 7, 2017

Ok I tested and I saw no difference it was the exactly the same as the picture above (after running startx as fb8)

tried and got same result :
speed=16000000
speed=48000000 (default)
speed=12000000
speed=16
none,same result with the lines
@flafyrex
@notro

@r0neko
Copy link

r0neko commented Aug 7, 2017

Try without the speed flag. See if this helps.
Mine works without the speed flag.

@turtiustrek
Copy link
Author

@flafyrex

Still the same no difference but SPI ili9341 works completely fine but this is parallel display which could be the problem

@r0neko
Copy link

r0neko commented Sep 16, 2017

@notro I am now working on a patch for the ILI9488 MCUFriend driver. Would you accept it? It has overlays that work(unfortunately, there is no touch support). And I am using the Arduino UNO version hooked up to the raspberry pi with lots of wires. Works fast without GPIOLIB. Works better. Nice job!

@notro
Copy link
Owner

notro commented Sep 17, 2017

I'm no longer a fbtft maintainer. Thomas Petazzoni is listed as maintainer, but he really does nothing.
Greg Kroah-Hartman is the staging maintainer, but I don't know how fbtft is handled these days.
https://github.com/notro/fbtft/wiki/Development

@r0neko
Copy link

r0neko commented Sep 17, 2017

Hi, Notro! Tell me if you can get me in contact with them, because I want to give them a Patch File that contains the FBTFT Driver for Arduino UNO Mcufriend.com 3.95 LCD using ILI9488 and a overlay that works. I am using this display on the raspberry pi. This uses part of the pinout of the HY-???(i forgot the name). I am using with recompiled kernel and without GPIOLIB and works very nice. Also, Good job of this driver!
Thank you.

With regards:
Talnaci Alexandru

@r0neko
Copy link

r0neko commented Sep 17, 2017

And this is how the LCD looks like:
front front
back back

@notro
Copy link
Owner

notro commented Sep 17, 2017

You should find all the info you need on the wiki page I gave.

@turtiustrek
Copy link
Author

@talnacialex Now try to get working on a Orange Pi since its cheaper :P but i will try on the Raspberry Pi too once i buy one

@r0neko
Copy link

r0neko commented Sep 22, 2017

I don't have a Orange Pi, nor a Banana Pi. I only have this Raspberry Pi and This Screen. And, @notro, I followed the wiki. This is how I made it working.

@r0neko
Copy link

r0neko commented Dec 6, 2017

Ok everybody! Here I attach the patch file. I can't test it on the Raspberry Pi, because right now it is used in a personal project. So.... if there are people that want it working(i think so) with rotation and everything, use my patch. For beginners, run patch -p1 < ili9488.patch from the root of the kernel sources. It should automatically patch the files that make this LCD work with the kernel! Sorry that I didn't gave the patch fast enough... I lost the VM where I compiled the kernel. I remade the patch from scratch. Hope it works :)
ili9488.patch in a zip file(ili9488.zip)

@bogdanalin92
Copy link

i can't install the patch it says that it cannot find a file to patch. Can you explain step by step what can i do?

@r0neko
Copy link

r0neko commented Feb 20, 2018

I said that I did not had time to recompile the kernel again with the patch. I made a patch file out of my hand. You can read the patch file to see what file should be modified. Now I am busy with other personal projects and I can't start working on the FBTFT kernel right away. I will try in my future time(if possible) to recompile it.

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants