How to setup a small, cheap TFT screen for the Raspberry Pi

Описание к видео How to setup a small, cheap TFT screen for the Raspberry Pi

This video shows you how to connect an ST7735 type TFT LCD screen to a Raspberry Pi using the SPI interface.

The screens shown here are 128x128 (1.4") and 128x160 (1.8") in size and can be purchased for very little from eBay.

Useful for all kinds of mini-projects including 3D printed cases, robotics, sensor readouts and the like.

The setup instructions are;
1) Enable SPI from Raspberry Pi Configuration

2) Open a terminal window and enter;
$ git clone https://github.com/cskau/Python_ST7735
$ cd Python_ST7735/
$ sudo python3 setup.py install

3) Navigate to the Python_ST7735 directory
a) Open shapes.py in Thonny

Changing for a screen that isn't 128x160 in size ...

b) Change HEIGHT=160 to HEIGHT=128 (for example)
c) Insert WIDTH and HEIGHT into the Disp = TFT ... variable

4) Run the shapes.py example

There's also plenty to play around with in the examples

Have fun!

Комментарии

Информация по комментариям в разработке