Closed alexduh closed 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:
thats normal, you can keep the backlight off until you've clearned the screen
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:
This is what appears on the LCD screen: