adafruit / Adafruit_CircuitPython_RGB_Display

Drivers for RGB displays for Adafruit CircuitPython.
MIT License
129 stars 52 forks source link

LCD shows garbage data on initialization #84

Closed alexduh closed 3 years ago

alexduh commented 3 years ago

When my LCD powers on and initializes, it shows garbage data on the screen for a moment. Here is the example codes I was following:

import digitalio
import adafruit_rgb_display.st7789 as st7789  # pylint: disable=unused-import

# Configuration for CS and DC pins (these are PiTFT defaults):
cs_pin = digitalio.DigitalInOut(board.CE0)
reset_pin = digitalio.DigitalInOut(board.D24)
dc_pin = digitalio.DigitalInOut(board.D25)

# Config for display baudrate (default max is 24mhz):
BAUDRATE = 24000000

# Setup SPI bus using hardware SPI:
spi = board.SPI()

# Create the display:
disp = st7789.ST7789(spi, rotation=90, width=135, height=240, x_offset=53, y_offset=40, # 1.14" ST7789
    cs=cs_pin,
    dc=dc_pin,
    rst=reset_pin,
    baudrate=BAUDRATE,
)

This is what appears on the LCD screen:

IMG_20200715_124034

ladyada commented 3 years ago

thats normal, you can keep the backlight off until you've clearned the screen