The Raspberry Pi Thread [6]


  1. Posts : 15,089
    Windows 10 IoT
    Thread Starter
       #641

    I already have this version, 1.54" SPI Colour Square LCD (240x240) Breakout – Pimoroni
    And have plans to buy one of these, Display HAT Mini – Pimoroni

    You can use that display with a Pi, it uses the st7789 controller. This should work if you wire it up correctly.
    GitHub - pimoroni/st7789-python: Python library to control an ST7789 240x240 1.3" TFT LCD display.

    it's BCM pin numbering:

    3-5V to any 5V or 3V pin
    CS to BCM 7
    SCK to BCM 11
    MOSI to BCM 10
    DC to BCM 9
    BL to BCM 19
    GND to any ground pin

    Ignore the other pins used for the SD card, unless you have plans to use it.
      My Computer


  2. Posts : 5,720
    insider build 10586.3 win10 pro 64
       #642

    I would blow it up if I tried to follow all that ,lol but i will give it a go maybe ,when our grandkids and there moma and papa go back to halifax ... someone tested positive at the party they attended. new years eve,so there waiting on test results...
    Last edited by caperjack; 05 Jan 2022 at 11:40.
      My Computer


  3. Posts : 15,089
    Windows 10 IoT
    Thread Starter
       #643

    It's not as hard as you might think to hook it up. I have a bunch of the Pimoroni breakouts wired up on proto boards and solderless bread boards. It uses SPI, yours just has a bunch of extra pins for the SD card slot.
    SPI at Raspberry Pi GPIO Pinout
    I'll have a look see tomorrow and post some test code and how to wire it up to a Pi. You could also use it with a PICO etc. I have those same Pimoroni breakouts running on a PICO.
      My Computer


  4. Posts : 15,089
    Windows 10 IoT
    Thread Starter
       #644

    V+ - Vin - to any 5V or 3V pin
    3V - 3Vo
    G - Gnd - GND to any ground pin
    CK - SCK - SCK to BCM 11
    SO - MISO - MOSI to BCM 10
    SI
    TC - TF CS - CS to BCM 7
    RT
    DC - DC to BCM 9
    CC - SD CS
    BL - BL to BCM 19
    TE

    Pinouts | Adafruit 1.3" and 1.54" 240x240 Wide Angle TFT LCD Displays | Adafruit Learning System
      My Computer


  5. Posts : 5,720
    insider build 10586.3 win10 pro 64
       #645

    Thanks for the info ,I'll give it good read and try setting it up over the next few days ,its crazy here someone at a party new years eve tested positive ,so everyone is in lockdown ,my daughter and husband were at party ,so there in lockdown across the street in the vacant Family home with there 6yr old son ,and we have a cute but restless 4yr old grandaughter .
    Last edited by caperjack; 04 Jan 2022 at 10:47.
      My Computer


  6. Posts : 15,089
    Windows 10 IoT
    Thread Starter
       #646

    This library "should" work. You "might" have to modify the examples to make sure the CE pin matches the one you used, or plug your jumper into the one used in the example. Most of the examples are coded for the Breakout Garden Hat front SPI slot, which I believe uses CE1.
    GitHub - pimoroni/st7789-python: Python library to control an ST7789 240x240 1.3" TFT LCD display.

    Code:
    sudo apt-get update
    sudo apt-get install python-rpi.gpio python-spidev python-pip python-pil python-numpy
    sudo apt-get install python3-rpi.gpio python3-spidev python3-pip python3-pil python3-numpy
    
    sudo pip install st7789
    sudo pip3 install st7789
      My Computer


  7. Posts : 5,720
    insider build 10586.3 win10 pro 64
       #647

    thanks ,will have a read later ,i got covid, "brain fog" now
    alphanumeric said:
    This library "should" work. You "might" have to modify the examples to make sure the CE pin matches the one you used, or plug your jumper into the one used in the example. Most of the examples are coded for the Breakout Garden Hat front SPI slot, which I believe uses CE1.
    GitHub - pimoroni/st7789-python: Python library to control an ST7789 240x240 1.3" TFT LCD display.

    Code:
    sudo apt-get update
    sudo apt-get install python-rpi.gpio python-spidev python-pip python-pil python-numpy
    sudo apt-get install python3-rpi.gpio python3-spidev python3-pip python3-pil python3-numpy
    
    sudo pip install st7789
    sudo pip3 install st7789
      My Computer


  8. Posts : 5,720
    insider build 10586.3 win10 pro 64
       #648

    we both just tested covid "negitive" using a covid home test kit ,, Oh what a relief it is ! now i have to go to grocery store to stockup on eatables !
    Last edited by caperjack; 05 Jan 2022 at 11:43.
      My Computer


  9. Posts : 5,720
    insider build 10586.3 win10 pro 64
       #649

    I had negitive test again today,will be going next week for the booster shot .Darlene got her's yesterday at Prince streeet Sobeys .... not in the mood to do anything PI !
      My Computer


  10. Posts : 15,089
    Windows 10 IoT
    Thread Starter
       #650

    I've been struggling with neck and shoulder pain, brutal lately. I have my new weather stuff setup, but haven't done much else. This weekend could suck, weather wise. All depends on how much snow this side of the island gets.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 18:50.
Find Us




Windows 10 Forums