ST7735S 80x160 0.96" SPI LCD Display Module

From Embedded Workshop
Jump to navigation Jump to search

ST7735S 80x160 0.96" SPI LCD Display Module

Hardware

These displays use the ST7735S controller: https://www.crystalfontz.com/controllers/Sitronix/ST7735S/320

Connecting to the Arduino Uno as follows:

LCD    Wire
Signal Color   UNO Pin
GND    Red      GND
VCC    Brown     5V
LED    Grey    3.3V (or 200 ohm resistor to 5V)
SCL    Violet    13 SCLK
SDA    Blue      11 MOSI
RES    Yellow     9
DC     Green      8 (This is the Data/Command DC signal)
CS     Orange    10
BLK             ???? (This can remain unconnected.)

Hardware Notes:
* The wire colors shown above are messed up.  The harness was pulled off of another SPI display.

Software

Installed "Adafruit_ST7735_and_ST7789_Library", version 1.6.0.
Using Arduino/libraries/Adafruit_ST7735_andST7789_Library/examples/graphicstest/graphicstest.ino example
Modified to use the following constructor:
  // For 1.44" and 1.8" TFT with ST7735 use:
  Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST); // Using this for Hardware SPI

Modified to use the following display initialization:
  // OR use this initializer (uncomment) if using a 0.96" 160x80 TFT:
  tft.initR(INITR_MINI160x80);  // Init ST7735S mini display

Software Notes:
* The display colors are messed up.
    ST77XX_RED displays as blue.
    ST77XX_YELLOW displays as light blue.
* Occasionally, a messed up row is visible on the bottom of the display,
    and a messed up column is visible on the right side of the display.