Difference between revisions of "Pi-1.3-LCD-HAT"

From SB-Components Wiki

(Created page with "Hello World !")
 
Line 1: Line 1:
Hello World !
+
<div class="row">
 +
  <div class="large-8 column">
 +
== 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
 +
 
 +
</div>
 +
  <div class="large-4 column">
 +
[[File:1_3_lcd_hat.png|thumb|left|alt=1.3 inch LCD HAT| Buy it From : ''[https://shop.sb-components.co.uk/products/1-3-lcd-hat-for-raspberry-pi Click Here]'']]
 +
  </div>
 +
</div>
 +
 
 +
== Pinout ==
 +
 
 +
 
 +
== Installation ==
 +
==== Python ====
 +
* Open a terminal and run the following commands to enable SPI:
 +
<source lang="shell"> sudo raspi-config </source>
 +
 
 +
* 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
 +
 
 +
[[File:Spi_en_gui.png]]
 +
 
 +
* 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
 +
<source lang="shell"> git clone https://github.com/sbcshop/1.3-LCD-HAT.git </source>
 +
* Enter dowloaded directory
 +
<source lang="shell"> cd 1.3-LCD-HAT </source>
 +
* Now run main.py by running the below command. It will display some text and an image on LCD.
 +
<source lang="shell"> python3 main.py </source>
 +
* You can also run "Button_demo.py" file to test joystick and buttons.
 +
<source lang="shell"> python3 Button_demo.py </source>
 +
 
 +
== Resources ==
 +
 
 +
''' Github '''
 +
* [https://github.com/sbcshop/1.3-LCD-HAT Source Code]
 +
 
 +
<b> Datasheet </b>
 +
* [ ST7789VM Datasheet]

Revision as of 09:30, 30 July 2021

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
1.3 inch LCD HAT
Buy it From : Click Here

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

Spi en gui.png

  • 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]