60fps on an SPI display using the Raspberry Pi and fbcp-ili9341 (includes fix for 320x240 ST7789)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มิ.ย. 2024
  • Think SPI displays are just for graphics and text? Think again! Using the fbcp-ili9341 library we can easily push pixels to an SPI display at 60fps which when combined with RetroPi makes it perfect for building mini games consoles!
    I used an Adafruit 320x240 2.0" SPI display that's not completely supported so had to make some chages to the library itself. You will probably be better off choosing something else, but this shows that it can be made to work.
    fbcp-ili9341 library: github.com/juj/fbcp-ili9341
    Adafruit 320x240 2" tft: www.adafruit.com/product/4311
    RetroPi installation instructions: retropie.org.uk/docs/First-In...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 170

  • @allenwong3221
    @allenwong3221 4 ปีที่แล้ว +8

    Thanks so much for your detailed instructions. It really works! When I saw the screen on the tft, I was so happy. : )

    • @ScottMarley
      @ScottMarley  4 ปีที่แล้ว +3

      I must admit I was blown away when I saw it working for the first time, I didn't really think it was possible!

    • @VTXHobbies
      @VTXHobbies 3 ปีที่แล้ว +1

      @@ScottMarley hello its scott manly

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว +1

      @@VTXHobbies fly safe ;)

  • @somewhatunderstandable4373
    @somewhatunderstandable4373 3 ปีที่แล้ว +4

    It actually worked for me. Just Changed the -DST7735R=ON to -DILI9341=ON for my specific board. Thank you so much. I tried several other guides/videos, but this one worked for me in 2020. Good luck everyone!

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      Good to know, I hope you make something cool with it!

  • @greglilly3866
    @greglilly3866 2 ปีที่แล้ว +1

    Dude!! I have a waveshare 2" SPI based on the ST7789V. After following the manufacturers instructions to install all the software... I had the shifted screen issue (video starts shifted to the right). Looked all over the place for a solution and stumbled across your video. I followed your instructions but just edited the "st7789.cpp" as waveshare has a patch that takes care of the native screensize resolution. Anyway... rebuilt according to your excellent instructions and restarted my pi. Works beautiful!!! 😉😊 Thanks for the excellent information!

    • @user-cg5uf4nd6n
      @user-cg5uf4nd6n หลายเดือนก่อน

      I followed the guide and tried the same thing but its not working please help me.

    • @TheDARKSOMBAX
      @TheDARKSOMBAX 15 วันที่ผ่านมา

      Same here, couldn't make it work for st7789v but im using orangepi

  • @GoldenGrenadier
    @GoldenGrenadier 2 ปีที่แล้ว +14

    This guide helped immensely! My only issue was that my display's controller was an ST7789V and not an ST7789. For anyone else struggling with an ST7789V, you can simply use -DST7789VW=ON instead of -DST7789=ON. Unfortunately, Genesis/Mega drive emulation doesn't have enough CPU cycles left over to run at full speed on a pi zeroW.

    • @user-cg5uf4nd6n
      @user-cg5uf4nd6n หลายเดือนก่อน

      I followed the guide and tried the same thing but its not working please help me.

  • @maartenvantongeren4153
    @maartenvantongeren4153 6 หลายเดือนก่อน

    Thank you just followed your steps i just was hoping for terminal and its giving me desktop on kali diddnt expect that to work WOW

  • @willashland4597
    @willashland4597 2 ปีที่แล้ว +3

    When sonic first came out and I was in elementary school, I never dreamed it would end up being emulated on a computer that fits in your pocket.
    Back when the Sega Genesis came out, cell phones weren't even a thing yet. Now, there are computers that are tiny and can play any game from multiple systems, and for not too much money :)

  • @ahizarlopez2899
    @ahizarlopez2899 2 ปีที่แล้ว

    the must useful tutuorial, THANKS!

  • @lewissmith9727
    @lewissmith9727 4 ปีที่แล้ว +2

    Really helpful video thank you

  • @thesimpleeastern
    @thesimpleeastern 3 ปีที่แล้ว +2

    I learned about that ssh thing that I didn't know before from your video. Have a like from me for that.

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว +1

      Cheers, it's really useful in situations like this where you're messing with the display or if you don't have it plugged into a display at all. Glad you found it useful!

  • @rayandamas2894
    @rayandamas2894 2 ปีที่แล้ว

    I have no idea of what actually happened but the video was amazing, Like it.

  • @puudogp1850
    @puudogp1850 ปีที่แล้ว

    Earned my subscribe and like thanks man, I used a Hat version of the LCD but with this guide with the Read me from the Gethub repository were up and running. Quick question what do I adjust to make this full screen seems I have a black bar on top and bottom. This is a 1.44x1.44 running retro pi on a pi zero...

  • @ameliabuns4058
    @ameliabuns4058 4 ปีที่แล้ว +3

    damn this is impressive

    • @ScottMarley
      @ScottMarley  4 ปีที่แล้ว +1

      Cheers dude, big thanks to juj on GitHub for providing the library!

  • @josephstewart9518
    @josephstewart9518 3 ปีที่แล้ว

    I'm having a problem with the waveshare 2" spi tft where the display is offset about 1/3 - ideas?

  • @Bannerz
    @Bannerz 2 ปีที่แล้ว

    Great video! I got the screen working but I seem to have an offset of around 16 to 20 pixels. Its like a black border and shifts everything to the right. I can't seem to find any setting to fix this, any ideas?

  • @quinbuchanan8991
    @quinbuchanan8991 2 ปีที่แล้ว +1

    Hey scott, Ive got a similar display (waveshare 2.8 inch 320x240), doing same as you seems to give a corrupt output somehow. Ive tried a few differnt clock divisor values and none seem to make a difference really. Thanks in advance.

  • @jesusvasquez4381
    @jesusvasquez4381 ปีที่แล้ว

    THANK YOU SOO MUCH. its works 2022

  • @lukasadelbrecht8276
    @lukasadelbrecht8276 4 ปีที่แล้ว +5

    Hey :)
    Thank you for this video! Do you think the lib could also work with other SBCs? I have an OrangePi Zero

    • @ScottMarley
      @ScottMarley  4 ปีที่แล้ว +5

      This library is specifically for the rpi, but as both this and the orangepi can be Debian based it might be possible to port it. You are best asking this on the fbcp-ili9341GitHub page.

    • @lukasadelbrecht8276
      @lukasadelbrecht8276 4 ปีที่แล้ว +3

      @@ScottMarley thank you for your quick answer! I will do that :)

  • @ramimehyar481
    @ramimehyar481 2 ปีที่แล้ว

    Amazing! Many thanks,
    Do you think it is possible to let Raspberry Pi run an Eink display as a driver and a host at the same time? or should I build a driver MCU separate for the display and control it with the SPI on the GPIO's?

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว +2

      You can use the SPI pins to drive an eink display, something like www.amazon.co.uk/1-54inch-Display-Module-Resolution-Two-Color/dp/B07Q6V93HQ/. No point using the driver I used here, as your not getting more than about 1fps from an eink screen regardless of how fast you drive it!

  • @wskinnyodden
    @wskinnyodden 2 หลายเดือนก่อน

    Hmmm, do you know of a similar library for these screens (have a couple ili9341 but also have a 640x480 4" one) that works on the Arduino Mega 2560 and/or the Mega DUE?
    Want to use either the 2560 or the DUE as an touchscreen input device on another project but definitely need it to be able to draw WAY faster than it currently does...

  • @kamran_aghlami
    @kamran_aghlami 4 ปีที่แล้ว +2

    Hello, thanks for the video
    I have a question, does v-sync work in this kind of setup? or are you having variable refresh rate depending how many frames you push into the screen? do these kind of displays suffer from screen tearing?

    • @ScottMarley
      @ScottMarley  4 ปีที่แล้ว +1

      The short answer is that no, vsync doesn't work as SPI screens have no idea what vsync is. The long answer along with some ways to mitigate it can be found here github.com/juj/fbcp-ili9341/blob/master/README.md#about-tearing

  • @rafaoli9918
    @rafaoli9918 3 ปีที่แล้ว

    Hello i seem toi have a problem my screen turns on with the top white and bottom part have a lot of colors kindal ike the ancient screens what could this be?

  • @064_anuragverma8
    @064_anuragverma8 ปีที่แล้ว

    Hey! I Wanted TO Ask If You Can Make A Detailed Video On ST7735(1.8") display

  • @forestg6777
    @forestg6777 ปีที่แล้ว

    Hi, is it possible to make a tutorial with recalbox ?

  • @ds2kx
    @ds2kx ปีที่แล้ว

    Failed to open VideoCore kernel mailbox! when we launch driver (even in SUDO). solutions ?

  • @FixationwithCarnage
    @FixationwithCarnage 11 หลายเดือนก่อน

    can you compile this with retropie instead of having to compile it inside of retropie?

  • @terrellmaryland12345
    @terrellmaryland12345 ปีที่แล้ว

    Hey I completely new to the hobby, I mean newborn new!! I don’t understand what most of this means… I have a question hopefully somebody can steer my in the right direction,
    So I want to take one a these small screens and put a loop on it.. but I want to encase it in something very slim like the size of a box of cards..
    is there a screen or a way that I can do that?

  • @jedandecko5585
    @jedandecko5585 3 ปีที่แล้ว +1

    Hi,
    great tutorial.
    Do you think you can achive 30fps from some MCU like esp32, at least for video?
    Thank you for sharing.

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      Thank you! The library only works on the RPi so you won't be able to use it on the ESP32. However I have seen some really smooth animation etc from the ESP32 on similar displays, this for example; th-cam.com/video/Wql4WTpPrWs/w-d-xo.html. Regarding video, if the MP4 was on an SD card I don't know that it would be decoded fast enough for 30fps display. Here is someone who has done video, but the MP4 has to be converted to a dat file first github.com/MhageGH/esp32_ST7735_Movie. Let me know if you manage to get this to work!

    • @jedandecko5585
      @jedandecko5585 3 ปีที่แล้ว

      @@ScottMarley Thank you for your help, soon as I got some time, ill try to implement it and see what fps I can achive. Ill post here if I manage to do anything, programing is my weak spot :)

  • @YamShargil
    @YamShargil 2 ปีที่แล้ว

    Amzing video!
    I am looking to show regular Raspberry Pi OS GUI on a 240x240 round lcd with GC9A01 controller.
    Didn't manage do to it...
    Any ideas were to look?
    Thanks :)

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว +1

      Sorry, I'm not an expert on this stuff. Just figured out what I needed to do!

  • @griffinbrooks6748
    @griffinbrooks6748 2 ปีที่แล้ว

    how do i SSH into my pi? ( i have a windows 10 pc, w ethernet connection for wifi )

  • @KineticEgg
    @KineticEgg 2 ปีที่แล้ว

    was writing a little retropie acttacy screen.. but after seeing this do you think this will work with the PiMoroni Breakout Garden 1.54 240x240 SPI display?

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว

      I have no idea, it depends on wether the display driver chip for that screen is supported by the library. So you'll have to find out what the driver chip is.

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว +1

      Actually just looked and it's the ST7789 so in theory it should work.

    • @KineticEgg
      @KineticEgg 2 ปีที่แล้ว

      @@ScottMarley thanks for the quick reply.. suppose the only way to find out is to muck around with it.. Cheers 🖖

    • @KineticEgg
      @KineticEgg 2 ปีที่แล้ว

      @@ScottMarley sadly looks like it won't work using a breakout garden thanks to BCM 9 for data.. oh well.. out comes the bread board

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว

      @@KineticEgg oh I see, I'd never heard of breakout garden before. Looks a bit like that qwik system or seeeds grove stuff. I generally prefer breadboards anyway ;) have fun!

  • @MikeNugget
    @MikeNugget 3 ปีที่แล้ว

    Nice video. Should LCD show Pi's terminal after reboot?

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      Not immediately, but once the library has loaded. Did you follow the instructions to make it load on boot?

    • @MikeNugget
      @MikeNugget 3 ปีที่แล้ว

      @@ScottMarley thanks for the answer. Yes I did, of course. I will figure out the problem and leave comment ;)

  • @kamilek95
    @kamilek95 2 ปีที่แล้ว

    What can i do, when i have same lagging problem with ili9341 screen? can someone help me?

  • @azmax623
    @azmax623 หลายเดือนก่อน

    Well, it's a good video to get it going, but I'm using a bunch of those pins for a PLC controlled sign, so it looks like no local screen for me :(

  • @JayzZenOmni
    @JayzZenOmni 12 วันที่ผ่านมา

    Hey guys u have a Pi Zero 2w and i think i did the installation right also specifying my screen cotroller but i cant figure out the pinout, can anyone help

  • @user-gn6js6gy2n
    @user-gn6js6gy2n 2 ปีที่แล้ว

    Hi! Is your st7789 2.0 inch display ips or tft?

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว

      That particular one is ips

  • @harmanndhiman9492
    @harmanndhiman9492 3 ปีที่แล้ว +4

    Does this work with raspbian? Oh nvm u explained it really well!!

    • @lrios4403
      @lrios4403 3 ปีที่แล้ว

      Ye just tested it

  • @Chao5uns1
    @Chao5uns1 10 หลายเดือนก่อน

    When I make it it says: "taking address of packed member of 'SPITask' may result in unaligned pointer value

  • @Shelf7840
    @Shelf7840 2 ปีที่แล้ว +1

    Can I use two ST7789 with this library at the same time?

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว

      I have no idea but I'd guess probably not!

  • @DavidKK4GAF
    @DavidKK4GAF 2 ปีที่แล้ว

    I got my 2.2 display to work on a Pi 4. But the display is mirrored. How can I flip the image 180 left to right?

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว

      You can do this, see this forum post forums.raspberrypi.com/viewtopic.php?f=91&t=132077#p880827. If using 0x10000 doesn't work, try 0x20000 instead

  • @adriang.4628
    @adriang.4628 4 ปีที่แล้ว

    Howdy, I get a "Please specify which display controller to use on command line to CMake!" error. How can I specify the display controller? Here is the command I am running: ""cmake -DHX8357D=ON -DGPIO_TFT_DATA_CONTROL=25 -DGPIO_TFT_RESET_PIN=24 -DSPI_BUS_CLOCK_DIVISOR=10 -DSTATISTICS=0 .."" so the back of my screen says HX8357D so I assume that is the driver or controller right? how to fix?

    • @adriang.4628
      @adriang.4628 4 ปีที่แล้ว

      well I went into the Cmakelists.txt and saw there was an ADAFRUIT_HX8357D_PITFT so I will use that if not then I'll do what you did and edit the text files

    • @ScottMarley
      @ScottMarley  4 ปีที่แล้ว

      @@adriang.4628 Yes, definitely give that a go. You might also want to open an issue in GitHub. The readme.md says that you can use -DHX8357D=ON but there is no code in CMakeLists.txt to check for that build option. Must have been an oversight.

    • @ScottMarley
      @ScottMarley  4 ปีที่แล้ว

      At first glance, it looks like editing CMakeLists.txt to add the HX8357D should be straightforward, use the other entries as an example.

  • @stan6458
    @stan6458 2 ปีที่แล้ว +1

    Is there a cpu performance impact using this display?

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว +2

      Yes, as the CPU has to keep pushing data to the BM2835 chip, the GPU is not used at all for SPI screens (afaik). I don't think I ever checked how much of an impact it had, as the CPU was still plenty fast enough for what I was doing with it.

  • @inspiredtiny
    @inspiredtiny 3 ปีที่แล้ว

    Awesome tutorial Sir! My problem is that I have an ILI9341 2.8" TFT SPI 240x320.. but it is not like yours which is ST7789.. what I have has TJCTM24028-SPI written at the back.. After following the steps in you video the screen is output is a mirror image of what should be displayed.. 😔 I will look at juj link and see if there is a way this TFT display will work with some hacks.. thanks!

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      You can definitely mirror it in software, although I've forgotten how... I'll have a look later and see if I can remember!

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว +1

      Got it, you can mirror the display by adding either display_rotate=0x10000 for a horizontal flip or
      display_rotate=0x20000 for a vertical flip to /boot/config.txt. From www.raspberrypi.org/forums/viewtopic.php?t=120793#p816458 Hope that helps

  • @griffinbrooks6748
    @griffinbrooks6748 2 ปีที่แล้ว

    will this work on pi zero 2 as well or only pi zero, 1, 2, 3, 4, etc.

    • @thomaspritchard2449
      @thomaspritchard2449 3 หลายเดือนก่อน

      did you ever find this found? trying to figure it out myself

  • @RuiNunesDev
    @RuiNunesDev 3 ปีที่แล้ว +1

    Does anyone know if/how video playback performs? in something like kodi or libreelec?

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว +1

      I haven't tried it myself. I don't see why it wouldn't work though, as the library basically just mirrors whatever would normally go out via the hdmi port. It's at least 60fps and runs with no discernable lag on video games. Would be interested if you get it to work or not!

  • @cjlowe1650
    @cjlowe1650 2 ปีที่แล้ว

    I'm on a raspberry pi 4 8gb, latest update as of 2021/08/19 (64 bit os)

  • @Agora_Digital_Solutions
    @Agora_Digital_Solutions 4 ปีที่แล้ว +1

    Can that display works if I install android on a pi 4?

    • @ScottMarley
      @ScottMarley  4 ปีที่แล้ว +1

      I don't have one to test, but I believe this library does work on the RPi4

  • @harmanndhiman9492
    @harmanndhiman9492 3 ปีที่แล้ว +1

    where did you get these cables

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      They're just standard female - female Dupont cables.

    • @harmanndhiman9492
      @harmanndhiman9492 3 ปีที่แล้ว

      Scott Marley thanks nice vid

  • @JKiel-de1kt
    @JKiel-de1kt 4 ปีที่แล้ว

    I tryed to run it on the "240x240, General 1.3inch LCD display Module, IPS, HD" from Waveshare and only get a blackscreen (back lite is on) How could I find out whats wrong?

    • @ScottMarley
      @ScottMarley  4 ปีที่แล้ว

      There are so many things that can make this not work! The 240x240 from adafruit (which I believe is the same screen) definitely does work, so you might have to keep trying. Double check all your pin connections, and the cmake command should be something like this:
      -DST7789=ON -DGPIO_TFT_DATA_CONTROL=5 -DGPIO_TFT_RESET_PIN=6 -DSPI_BUS_CLOCK_DIVISOR=8 ..
      (don't forget the two dots on the end!) providing you have reset on pin 31 and dc on pin 29. Try increasing -DSPI_BUS_CLOCK_DIVISOR=8 to =40 or something. See if it works at all. If all else fails, you can ask on the github page for help there.

    • @JKiel-de1kt
      @JKiel-de1kt 4 ปีที่แล้ว

      @@ScottMarley because of the strange pin labeling of the screen i connected it wrong, but now its running. Thx :)

    • @ivanravenski
      @ivanravenski 3 ปีที่แล้ว

      @@JKiel-de1kt hey bud how did you wire the wave share im cofnused because there is no mosi or miso only CS DIN etc

    • @JKiel-de1kt
      @JKiel-de1kt 3 ปีที่แล้ว

      @@ivanravenski Jo, thats why I was confused too.... Here you are:
      purple/vcc = 1
      white/GND = 6
      green/DIN = 19
      orange/CLK = 23
      yellow/CS = 24
      blue/DC = 18
      brown/RST = 22
      grey/BL = unused

  • @Jalecko
    @Jalecko 3 ปีที่แล้ว

    im using a wavehare board with a ssd1351 but it doesnt wanna boot after rebooting

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      There are many things that can go wrong here, have you closely followed the instructions on the GitHub page? Have you set the -DSSD1351=ON directive? Have you started with -DSPI_BUS_CLOCK_DIVISOR set to somethhing high like 60 and see if that works? Are you certain that all your connections are correct, and that -DGPIO_TFT_DATA_CONTROL and -DGPIO_TFT_RESET_PIN are set correctly using the BCM pin numbers? If you're still stuck, I advise posting on the GitHub page for further help, but when you do, mak sure you are very specific and give all of your connections, compilation arguments, hardware info, exactly what you have tried etc or people won't be able to help.

  • @granmastern
    @granmastern 2 ปีที่แล้ว

    would this work with the pico?

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว +1

      No, that has a completely different chip, software, etc.

  • @cheat_steve10
    @cheat_steve10 3 ปีที่แล้ว

    I have a screen with the same PINs exept TFCS. Do i need to do anything different?

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว +1

      TFCS is the same as CS on mine. TFCS is the chip select line for the TFT, SDCS is the the chip select for the SD card if your screen has one.

    • @cheat_steve10
      @cheat_steve10 3 ปีที่แล้ว

      So my screen has only a screen, no sd card and no touch screen.
      My PINs are:
      1.VCC
      2.GND
      3.MISO
      4.MOSI
      5.BLK
      6.DC
      7.RES
      8.CLK
      So the Chip is automaticly selected?

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว +1

      @@cheat_steve10 it's not automatically selected as such, its selected via the TFCS pin on your screen, so that needs to be wired as per the diagram in the video (except mine is called CS). Just follow that diagram and you'll be good.

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว +1

      Oh, you'll also want to connect the BLK pin to 3.3V, as this is for the backlight. I didn't do this on mine, as I wasn't using the backlight.

    • @cheat_steve10
      @cheat_steve10 3 ปีที่แล้ว +1

      The thing is my screen doesn't have a TFCS pin.
      My screen only has those 8 pin.

  • @cjlowe1650
    @cjlowe1650 2 ปีที่แล้ว

    When I do the cmake is says "You need a project name" Any ideas?

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว

      No idea. I just followed the github instructions carefully and it worked out for me. Sorry!

  • @Currychicken5
    @Currychicken5 3 ปีที่แล้ว

    It works great although my backlight seems to flicker it goes bright every frame update do you know what could be causing it?

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว +1

      Hi, that sounds strange! The backlight is connected to the correct pin I guess? (Usually 3V3)

    • @Currychicken5
      @Currychicken5 3 ปีที่แล้ว

      @@ScottMarley I have tried both 3v and 5v they both have the problem ground seems to turn the backlight off

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      @@Currychicken5 is it definitely the backlight and not the LCD itself flickering?

    • @Currychicken5
      @Currychicken5 3 ปีที่แล้ว

      @@ScottMarley I’m gonna unplug the backlight and see if it still flickers when i hold a flashlight to it

    • @Currychicken5
      @Currychicken5 3 ปีที่แล้ว

      @@ScottMarley its hard to see but it seems like it could be either lcd or backlight

  • @dummypg6129
    @dummypg6129 3 ปีที่แล้ว

    Does the library supports st7735?

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว +1

      Yes

    • @dummypg6129
      @dummypg6129 3 ปีที่แล้ว

      @@ScottMarley cool, excited to try. Waiting for my display to arrive.

  • @acatisfinetoo3018
    @acatisfinetoo3018 2 ปีที่แล้ว

    Does this work with the raspberry pi 4 model b?

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว

      Yes, works fine with the 4

    • @acatisfinetoo3018
      @acatisfinetoo3018 2 ปีที่แล้ว

      @@ScottMarley I did everything in your video and got as far as configuring boot options...i am missing the hdmi_cvt =320 240 60 1 0 0 0. line. i enabled the "hdmi force_hotplug =1" but i get the error vc_dispmanx_display_open failed! Make sure to have hdmi_force_hotplug=1 setting in /boot/config.txt. I have the ili9341 2.8 display. any ideas?

  • @cjlowe1650
    @cjlowe1650 2 ปีที่แล้ว

    I tried the Waveshare (it's the version I have, (2in) and it has errors all over the place). Someone PLEASE HELP!

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว

      Try posting here and see if anyone can help github.com/juj/fbcp-ili9341/issues

  • @OndrejPopp
    @OndrejPopp 5 หลายเดือนก่อน

    6:41 actually what you did here is to replace 320 - DISPLAY_WIDTH for zero. So, setting DISPLAY_WIDTH to 320 will do the same thing...

  • @sanuga_dinhas
    @sanuga_dinhas 2 ปีที่แล้ว

    Hi can i please have the whole code for this project

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว

      I can't give you a single piece of code that makes this work. How you configure everything depends on the exact SPI screen you have. Download and write retropie to a MicroSD, make sure it works fine over HDMI. Then follow the instructions on this video and the GitHub page for the spi driver, to set up the spi screen. Links are in the description.

  • @ivanravenski
    @ivanravenski 3 ปีที่แล้ว

    If anyone can help I’ve been trying to figure this out for a while my screen is a 2inch 240x320 waveshare screen but my pin out is Vcc,gnd,Din,Clinton,cs,DC,RST, BACKLIGHT. So I’m confused what should Goto mosi miso etc if anyone knows how to plug this in lmk please

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      Din on your screen connects to MOSI (RPi pin 19). Clk goes to pin 23, CS goes to pin 24, RST goes to pin 31, DC goes to pin 29. Backlight usually goes to Vcc if you want it on, but might be ground. Try it and see. You can leave MISO unconnected. Vcc goes to either 3.3V or 5V depending on your screen. GND goes to ground. If you do that and follow the rest of the instructions to build the library then it should (might!) work.

    • @ivanravenski
      @ivanravenski 3 ปีที่แล้ว +3

      Scott Marley hey thanks a lot for the reply I appreciate your video I’m going to try this out on my pi4 after my morning coffee ☕️ 🧉

    • @harmanndhiman9492
      @harmanndhiman9492 3 ปีที่แล้ว

      Scott Marley where did u get those cables?

    • @Currychicken5
      @Currychicken5 3 ปีที่แล้ว +1

      @@harmanndhiman9492 they are called jumper wires most electronic shops sell them

    • @ivanravenski
      @ivanravenski 3 ปีที่แล้ว

      @@ScottMarley didn’t work on pi4 so I tried on my pi3 B+ with retro pie I think I have it hooked up right but nothing is on the screen just the backlight and the hdmi put doesn’t work either the tv says something about resolution

  • @pandaman4273
    @pandaman4273 4 ปีที่แล้ว +1

    how to use touch?

    • @ScottMarley
      @ScottMarley  4 ปีที่แล้ว

      The display I have here is none touch so I cant help.

    • @pandaman4273
      @pandaman4273 4 ปีที่แล้ว

      @@ScottMarley thanks😥

  • @joselobato3959
    @joselobato3959 11 หลายเดือนก่อน

    Does it work in a raspberry pi 4 B? :

    • @ScottMarley
      @ScottMarley  11 หลายเดือนก่อน +1

      Yes, it works with the Pi 4

    • @joselobato3959
      @joselobato3959 11 หลายเดือนก่อน

      @@ScottMarley Thx, man.

  • @FixationwithCarnage
    @FixationwithCarnage 11 หลายเดือนก่อน

    retropie graphic be lookin a lil sus

  • @pabloh318
    @pabloh318 3 ปีที่แล้ว +1

    works for raspberry pi zero?

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      According to the GitHub page, it does. I have never tried it though.

    • @pabloh318
      @pabloh318 3 ปีที่แล้ว

      @@ScottMarley when I do sudo ./fbcp-ili9341
      my raspberry resets the GPIO pins and later my screen won't turn on

    • @pabloh318
      @pabloh318 3 ปีที่แล้ว

      any solution?
      Thanks

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      @@pabloh318 I don't know I'm afraid, I haven't used it with the zero or had an issue like that I'm afraid. You can post on GitHub if you need help

    • @pabloh318
      @pabloh318 3 ปีที่แล้ว

      Thanks for your answers. Bye! ;)

  • @sebastianputlitz2708
    @sebastianputlitz2708 3 ปีที่แล้ว

    my screen is mirrored, what to do?

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      You need to add a line to /boot/config.txt, either 'display_rotate=0x10000' for a horizontal flip or 'display_rotate=0x20000' for a vertical flip. If you just need to rotate the screen instead of flip it, use 'display_rotate=#' where # is 1, 2 or 3. Hope that helps.

    • @sebastianputlitz2708
      @sebastianputlitz2708 3 ปีที่แล้ว

      @@ScottMarley Hi Scott, thank you for your reply. display_rotate=0x20000 in config.txt works. But it flips the HDMI Output too. So any ideas, howt to flip only the ili9341 Display?

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      @@sebastianputlitz2708 I don't know if that's possible. Try some more config.txt options from here and see if anything works www.raspberrypi.org/documentation/configuration/config-txt/video.md

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      Looks like it isn't possible as far as I can tell. You can rotate the spi display separately from the hdmi, but not mirror it. The library is written to just display the hdmi buffer, as stated here github.com/juj/fbcp-ili9341#do-i-have-to-show-the-same-image-on-hdmi-output-and-the-spi-display-or-can-they-be-different

    • @sebastianputlitz2708
      @sebastianputlitz2708 3 ปีที่แล้ว

      @@ScottMarley Ok Thank you. I think it is not necessary, at the end.

  • @rodrigomiranda8779
    @rodrigomiranda8779 3 ปีที่แล้ว

    Hey Scott!
    Amazing job man!
    PErfect.
    I wonder if you could assist. i cannot get it to work. i keep getting white screen.
    My screen is a ili9341 and i use the following specs -
    sudo apt-get install cmake
    cd ~
    git clone github.com/juj/fbcp-ili9341.git
    cd fbcp-ili9341
    mkdir build
    cd build
    cmake -DSPI_BUS_CLOCK_DIVISOR=6 -DILI9341=ON -DGPIO_TFT_DATA_CONTROL=24 -DGPIO_TFT_RESET_PIN=25 -DSTATISTICS=0 ..
    make -j
    i have the core of my pi at 360. this means that 360/6 = 60hz ...
    But the screen keeps getting white ....
    any ideas?

    • @ScottMarley
      @ScottMarley  3 ปีที่แล้ว

      Hi, there are a bunch of things that can go wrong here, and I can't see anything obvious from what you've posted. Check your connections and pins are correct. Also increase your divisor to 40 or so and see if that helps. If so, you can then reduce it until it works. You might be better asking for help on the GitHub page however, where people far more knowledgeable than me may be able to help!

  • @cjlowe1650
    @cjlowe1650 2 ปีที่แล้ว

    Thanks. But seriously, couldn't you of put the commands attached here or on a webpage. Going back and forth between screens is crazy!

    • @ScottMarley
      @ScottMarley  2 ปีที่แล้ว +1

      The commands will be different depending on the model of the LCD, screen controller, resolution, orientation and a load of other stuff so its vital that you read through the docs carefully to make it work for your use case. The GitHub documentation is really good, much better than anything I could write here.

  • @jonathanstein6056
    @jonathanstein6056 ปีที่แล้ว +1

    Edit out your mouth sounds/noises. Very distracting.