RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    1.8" SPI TFT Waveshare screen plz Help!!

    Scheduled Pinned Locked Moved Help and Support
    spi displayhelp guide
    4 Posts 2 Posters 1.1k 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.
    • A
      Atomize
      last edited by

      Good afternoon guys and girls.

      Ok after days of trying to get this 1.8" spi tft waveshare controller ST7735S screen to work iv had nothing but headache .iv beeing reading so many forums and post that im going mad.

      iv been to waveshare wiki no help you name it iv been tried it still no luck now im not great in coding but im not thick i can read and follow commands easy put it's still not working :{

      im starting from fresh install retropie 4.4 on a pi zero w

      enabled spi and rebooted.

      now the pins are as connected to the pi zero like this (see below)

      vcc - 3.3v {pin01}
      gnd - gnd {pin06}
      din - spi-mosi {pin19}
      clk - spi-clk {pin23}
      cs - spi-ceo_n {pin24)
      dc -gpio-gen4 {pin16)
      rst - gpio-gen5 {pin18}
      bl - ? backlight 3.3v pin ?

      so im sure its wired up right just need a good guide to show me how to get it mapped to the 1.8" tft screen.

      i can install everything in retropie terminal yes ? i have internet so if needed i can install python ect if needed.

      i really would love to get this screen working i got so many projects i wanna do using small screens but just cant get them to work any help would be much appreciated i would even drop £20 into your paypal if we can get this working im so stressed atm its really giving me headaches.

      Thanks Nick.

      EfriimE 1 Reply Last reply Reply Quote 0
      • EfriimE
        Efriim @Atomize
        last edited by Efriim

        @Atomize
        Here is a rundown of the steps I found required in the manual and wiki
        https://www.waveshare.com/w/upload/a/a2/1.8inch_LCD_Module_User_Manual_EN.pdf
        https://www.waveshare.com/wiki/Libraries_Installation_for_RPi

        connect to the pi with ssh. and use these commands you could probably copy and paste with right click.

        ##### Install WiringPi library
        cd
        wget https://www.waveshare.com/w/upload/f/f3/WiringPi.tar.gz
        tar -xzf WiringPi.tar.gz
        cd wiringPi
        ./build
        # checks the gpio
        ./gpio/gpio -v
        
        ##### Install the brcm2385 C library
        cd
        wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.59.tar.gz
        tar -xzf bcm2835-1.59.tar.gz
        cd bcm2835-1.59
        ./configure
        make
        sudo make check
        sudo make install
        
        ##### Install the python library 
        sudo apt update
        sudo apt install -y python-dev python-smbus python-serial python-imaging
        # These may be duplicates libraries; already installed from the line above
        cd
        wget https://files.pythonhosted.org/packages/af/2f/407b6e4cc8a0bdf434825a160bba1807991886b63cce16a5f1a6e1f24cdf/RPi.GPIO-0.6.5.tar.gz
        tar -xzf RPi.GPIO-0.6.5.tar.gz
        cd RPi.GPIO-0.6.5
        sudo python setup.py install
        cd
        wget 
        https://files.pythonhosted.org/packages/fb/14/4c2e1640f0cb04862c76d9d76ed7c945b0f67876e503ac02f7f675fe86a0/spidev-3.4.tar.gz
        tar -xzf spidev-3.4.tar.gz
        cd spidev-3.4
        sudo python setup.py install
        
        ##### Enable I2C and SPI; add modules to load
        sudo raspi-config
        # Interfacing options > I2C > enable
        # Interfacing options > SPI > enable
        sudo nano /etc/modules
        # Add two lines below and save with ctrl+O; ctrl+X to exit 
        i2c-bcm2708
        i2c-dev
        # I'm not sure if the i2c is needed for where we are going but we will come back to this
        

        I think you will need to add a some things to the config.txt but I don't know what exactly.
        sudo nano /boot/config.txt

        hdmi_force_hotplug=1
        hdmi_cvt=160 128 60 1 0 0 0
        hdmi_group=2
        hdmi_mode=1
        hdmi_mode=87
        display_rotate=2
        

        there is some more information here related to the 1.44 inch lcd
        https://wavesharejfs.blogspot.com/2018/03/raspberry-pi-driv-144inch-lcd-hat-with.html
        and you probably need one of these:
        https://github.com/notro/fbtft
        Can a 1.8 inch lcd display emulationstation? I don't know yet, maybe you could set it up to display the connected controllers, or play pocketstation games.

        1 Reply Last reply Reply Quote 0
        • EfriimE
          Efriim
          last edited by Efriim

          There is some more code here. I don't know exactly what it does.
          https://www.waveshare.com/wiki/File:1.8inch-LCD_Module-Code.7z
          https://github.com/waveshare/WSLCD1in8

          This guy did some things successfully a long time ago.
          http://www.whence.com/rpi/

          and more info on the fbtft
          https://github.com/notro/fbtft/wiki

          and here is the datasheet for waveshare 1.8, you're absolutely going to need this
          https://www.waveshare.com/w/upload/e/e2/ST7735S_V1.1_20111121.pdf

          EfriimE 1 Reply Last reply Reply Quote 0
          • EfriimE
            Efriim @Efriim
            last edited by

            I was just joking about the datasheet, though if you search for ST7735 you will get alot more results about the item. I still have a bunch of the tabs open about this, and haven't read them yet.

            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.