Hi
I am trying to get the Waveshare 2" LCD, the standard display not the pico board mount, working with my pico. When I run the code, excerpt below, all the debug messages are printed but the display is blank. I think the problem might be with the backlight. I have tried two displays with the same result.
Does anyone have any ideas what I might be doing wrong.
Thanks
Simon
I am trying to get the Waveshare 2" LCD, the standard display not the pico board mount, working with my pico. When I run the code, excerpt below, all the debug messages are printed but the display is blank. I think the problem might be with the backlight. I have tried two displays with the same result.
Does anyone have any ideas what I might be doing wrong.
Thanks
Simon
Code:
print("Starting ST7789V text demo...")# Pin configuration (adjust as needed)TFT_SCL = 10 # SPI0 SCKTFT_SDA = 11 # SPI0 MOSITFT_DC = 8TFT_RST = 12TFT_CS = 9TFT_BL = 13 # Optional, for backlight# Display resolutionTFT_WIDTH = 240TFT_HEIGHT = 320# Initialize SPIprint("Initializing SPI...")spi = machine.SPI(1, baudrate=40000000, polarity=1, phase=0, sck=machine.Pin(TFT_SCL), mosi=machine.Pin(TFT_SDA))print("SPI initialized.")print("Initializing display...")display = st7789.ST7789( spi, TFT_WIDTH, TFT_HEIGHT, reset=machine.Pin(TFT_RST, machine.Pin.OUT), dc=machine.Pin(TFT_DC, machine.Pin.OUT), cs=machine.Pin(TFT_CS, machine.Pin.OUT), rotation=0)print("Display initialized.")# Turn on backlightprint("Turning on backlight...")bl = machine.Pin(TFT_BL, machine.Pin.OUT)bl.value(1)print("Backlight on.")print("Filling screen with blue...")display.fill(st7789.BLUE)Statistics: Posted by dancingbear1965 — Mon Jan 19, 2026 8:49 pm — Replies 2 — Views 33