Pi-1.3-LCD-HAT
From SB-Components Wiki
1.3 inch LCD HAT
1.3” LCD HAT is a 1.3-inch diagonal display HAT with 240 x 240 resolution, 65K RGB colors, clear and colorful displaying effect, Four Push buttons and a joystick, designed for the Raspberry Pi to expand its engagement via SPI communication by providing a standard 40 pin GPIO interface. The 1.3" LCD HAT includes an integrated ST7789VM display driver and SPI interface, reducing the number of IO pins required. It features a 5-input joystick that is internally connected through a stackable GPIO connector header.
Features
- Raspberry Pi compatibility
- 4-wire SPI Communication
- Standard Raspberry Pi 40 Pins GPIO
- 4 directions + attached band Central press button Joystick Control
- 4- Push Buttons
- 1.3-inch Diagonal Display
- Handy and Useful
Specifications
- Operating Voltage - 3.3 V
- Pixel Size - 0.0975(H)x 0.0975(V) mm
- Pixels - 240×240 resolution
- Display Colour - 65K RGB
- Display Driver - ST7789VM
Pinout
Installation
Python
- Open a terminal and run the following commands to enable SPI:
sudo raspi-config
- Choose Interfacing Options -> SPI -> Yes
- You can also use GUI method to enable SPI Go to Menu > Preferences > Raspberry Pi Configuration > Interfaces, and enable SPI
- Stack 1.3 inch LCD HAT on top of Raspberry Pi GPIO Header pins.
- Make Sure SPI is Enabled (As mentioned above)
- Now clone 1.3 inch LCD HAT Github repository by running below command in terminal
git clone https://github.com/sbcshop/1.3-LCD-HAT.git
- Enter dowloaded directory
cd 1.3-LCD-HAT
- Now run main.py by running the below command. It will display some text and an image on LCD.
python3 main.py
- You can also run "Button_demo.py" file to test joystick and buttons.
python3 Button_demo.py
Resources
Github
Datasheet
- [ ST7789VM Datasheet]