I'm trying to put this (https://core-electronics.com.au/adafruit-1-14-240x135-color-tft-display-microsd-card-breakout-st7789.html?utm_source=google_shopping&gclid=Cj0KCQiAkuP9BRCkARIsAKGLE8XwQYVS1XQRsjU3OIjC6Ie67YsZyygecW5IgsnlXMugJFH5k80UOK4aAsGyEALw_wcB) monitor though gpio. so I can make an easy google glass. can i have some help to try and actach the lcd to gpio or hdmi
The screen will not connect to HDMI as it uses SPI to connect and the bandwidth through this will not give anything like real-time video so at best you will get text / polygon drawing.
First, you need to look at how you connect SPI to the Pi.
- Watch voltage as some SPI are 5v and some 3v3 - look at level converters if needed
- Wiring for SPI devices is well documented - I would start here on the RPF website SPI0 is common to all models of Pi (it helps if you say what Pi you are planning on using).
Then you need to enable SPI on the Pi
- The basic driver for SPI communications is built in (see above link)
You then need to find out how to drive the device itself.
- You could look to port the Adafruit library over from MicroPython
- You could look to use this PyPI library but you will not learn as much as the port :-)
Basically the steps are:
- Create a display object
- Create an image (BMP) of the correct size
- Use the Python PIL / Pillow tools to 'draw' into the image created in step 2
- Once done, the display object can have the image displayed on it with the
There are some brave folk out there who have got these displays mirroring screens (Google Mirroring HDMI to ST7789) but my eyes are not good enough.
Note: Other search engines that Google are available - I use this as the verb not noun.