Zum Inhalt springen

WSAL13892 – 1.8inch LCD Module/en

Aus JW Tech Wiki

Documentation notice: This technical documentation was independently rewritten from an archived supplier source. Check technical details and commands against the product version and manufacturer documentation before use.

Summary

The 1.8-inch LCD module from Waveshare uses an ST7735S driver with an SPI interface and a resolution of 128×160 pixels. It is suitable for Raspberry Pi, STM32, Arduino, and VisionFive2.

Related products at JW Tech

Technical overview

  • Resolution: 128 × 160 pixels; Driver IC: ST7735S
  • Interface type: SPI (4-wire); Supported color depths: 12/16/18 bits per pixel (RGB444, RGB565, RGB666); the default example uses RGB565
  • Operating voltage: 3.3 V or 5 V; with 5 V supply the logic level is 5 V, with 3.3 V it is 3.3 V
  • Active display area: 35.04 mm (W) × 28.03 mm (H); Module dimensions: 56.5 mm × 34 mm
  • Raspberry Pi connection via PH2.0 8-pin cable: VCC→3.3V, GND→GND, DIN→MOSI(19), CLK→SCLK(23), CS→CE0(24), DC→22, RST→13, BL→12
  • STM32 example based on STM32F103RBT6; Pin mapping: DIN→PA7, CLK→PA5, CS→PB6, DC→PA8, RST→PA9, BL→PC7
  • Arduino UNO mapping: DIN→D11, CLK→D13, CS→D10, DC→D7, RST→D8, BL→D9, VCC→5V
  • SPI communication protocol: CPOL=0, CPHA=0 (SPI0); D/CX controls command/data (0=command, 1=data); RESX must be low during power-on
  • For Raspberry Pi: enable SPI via raspi-config and reboot; different libraries are available depending on the system (bookworm/bullseye)
  • VisionFive2: same pinout as Raspberry Pi (19, 23, 24, 22, 13, 12); run demos via Python

Commands and examples – verify before use: 

sudo raspi-config
sudo reboot
sudo wget https://files.waveshare.com/upload/8/8d/LCD_Module_RPI_code.zip
sudo unzip ./LCD_Module_RPI_code.zip
cd LCD_Module_RPI_code/RaspberryPi/c && sudo make clean && sudo make -j 8
sudo ./main 1.8
cd python/examples && sudo python3 1inch8_LCD_test.py
wget https://files.waveshare.com/upload/e/e9/LCD_Module_code.7z
7z x LCD_Module_code.7z -o./LCD_Module_code
python3 1inch8_LCD_test.py

Notes and version constraints

  • The FBCP environment is currently not compatible with the Raspberry Pi “bookworm” system; a bullseye system is recommended.
  • When using the bookworm system, only the lgpio library and Python demos are available; bcm2835 and wiringPi cannot be installed.
  • The pin mappings apply to the specified example boards (STM32F103RBT6, Arduino UNO). For other boards, pins must be adjusted accordingly.
  • The demo file “1inch8_LCD_test.py” listed in the source corresponds to the 1.8-inch module; other sizes have their own test scripts.
  • Downloading demo files requires an internet connection; offline operation makes the scripts unavailable.
  • Version-sensitive steps: Depending on the OS (bookworm vs. bullseye), the installable libraries and available demos differ.

Source and revision record