RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Fast refresh rates up to 60fps with an SPI display (ILI9341)

    Scheduled Pinned Locked Moved Projects and Themes
    spiili934160fps
    15 Posts 7 Posters 18.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mooseprM
      moosepr @juj
      last edited by

      @juj this new video does look pretty slick, not even a sign of shearing or tearing. My go-to test is super Mario world for the SNES. The speed of the feet in the intro video is a good sign of high fps

      want to get a tft into your project, look no further than here https://retropie.org.uk/forum/topic/7464/ili9341-tft-screen-guide

      1 Reply Last reply Reply Quote 0
      • E
        EmulatedBen
        last edited by EmulatedBen

        Hi Juj
        I tried your driver's last night for raspberry pi 3. I am getting stuck on the step where it tries to apply resolution ratio between the HDMI and spi screen. The spi screen boots up with white colour nothing else but I can't type anything on the command prompt. If I force shutdown and restart spi screen doesn't even have white screen. Would you be able to help me with that? Thanks

        1 Reply Last reply Reply Quote 0
        • J
          juj
          last edited by

          Hi EmulatedBen,

          I suppose the above question predates the GitHub discussion on fbcp-ili9341 bug tracker, and you were able to get it working?

          In any case, the code has been updated quite a bit since a month, and it now also works on Pi Zero and a number of other display controllers besides ILI9341, so may be worth rechecking if there still were some unresolved issues from before. Here is a recent video of the controller ported over to the dreaded 480x320 ILI9486 WaveShare 3.5" screen that is regarded to be really slow (it kind of is, Adafruit's HX8357D 480x320 display is about 70% faster than this WaveShare 3.5" 480x320, though some games run still great on it)

          1 Reply Last reply Reply Quote 0
          • B
            blackshadow
            last edited by

            Just want to say thanks for this had a spare 2.8 inch screen doing nothing so decided to look into this and it runs great also i can confirm this works on pi 2's aswell as i replaced the driver on that one with this now im getting smooth framerates on that display thanks :D

            on a side note does anyone know how to clear the display after shutdown as it stands the last thing displayed remains onscreen even after shutting down ie the console itd be nice to know how to blank the screen to know its safe to completly power off the device

            1 Reply Last reply Reply Quote 0
            • J
              juj
              last edited by

              Thanks, great to hear it works well! And also on a Pi 2.

              I should be able to make the driver clear the screen once it is quitting, although that might not be enough from Linux perspective, because in addition it will require that fbcp-ili9341 is the last thing to shut down before the system shutdown operation itself finishes. Not sure how feasible that is to guarantee on Linux. I'm traveling this week, but I'll put this on a list to try out.

              1 Reply Last reply Reply Quote 0
              • J
                juj
                last edited by

                Updated fbcp-ili9341 today to clear the screen when it is quitting, and turn the backlight off as well if backlight control is enabled. Now if the fbcp-ili9341 process is killed e.g. with "sudo pkill fbcp-ili9341", it will turn off the display before going away. It should theoretically work to develop a shutdown script to kill the process manually at shutdown, which would blank the screen when the Pi is shutting off, though I did not test this far.

                1 Reply Last reply Reply Quote 0
                • B
                  blackshadow
                  last edited by

                  good work ill test this out once i have the time to sit down with my pi

                  1 Reply Last reply Reply Quote 0
                  • F
                    fdeluxe
                    last edited by fdeluxe

                    I want to inform you guys that adjusting the screen brightness on this screens is very easy:

                    Connect LCD --> GPIO18

                    sudo apt-get purge wiringpi
                    sudo apt-get install wiringpi
                    gpio -g mode 18 pwm
                    gpio -g pwm 18 value

                    where value can be anything between 0 and 255 but you can also try higher values.
                    This is perfect for hooking up a poti or some buttons and let a python script run wich changes the brightness accordingly
                    You can also hook up your arduino to the LCD pin and use

                    analogWrite(LcdPin, value); // value can be 0-255

                    You will get a brighter screen using the Arduino, since the Pi only delivers 3,3V at PWM while the Arduino does 5V (I measured 4.6V and the image is slighty darker compared to using the 5V pin of the Pi)

                    Not sure if this will work on any pcb. I have exaclty the same one as in the video (

                    )

                    1 Reply Last reply Reply Quote 0
                    • F
                      fedekrum
                      last edited by

                      Hi.
                      Nice work @juj !!!

                      Considering that this is my display datasheet ( http://www.lcdwiki.com/2.4inch_RPi_Display ), which options would you recommend to compile the script for a RPi Zero W?

                      1 Reply Last reply Reply Quote 0
                      • H
                        harrycool25
                        last edited by

                        May I request a more in-depth assistance in order to install this driver correctly since the installation guide on the linked GitHub page is super complex for a beginner builder like myself.
                        :((( I would love to get this up and running for my handheld Retropie Console project

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.