RP2040 Feather (Pink) with HXD8357D LCD

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Nerdrantz
 
Posts: 1
Joined: Wed Nov 23, 2022 6:15 pm

RP2040 Feather (Pink) with HXD8357D LCD

Post by Nerdrantz »

I am about to go insane over this. I have the RP2040 Feather (Pink) and a HDX8357D 3.5inch TFT display. I have went through all of the wiring tutorials, the test tutorials for the display, and all of the pinout diagrams for both. I get backlight, so obviously there is power, but with the test program for the display I get nothing.

Wiring :
Feather - HXD8357D
GND - GND
3.3v - 3-5v
SCK - CLK
MO - MOSI
MI - MISO
D10 - DC
D9 - CS

Code snippet from tutorial :

Code: Select all

# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT

"""
This test will initialize the display using displayio and draw a solid green
background, a smaller purple rectangle, and some yellow text.
"""

import board
import terminalio
import displayio
from adafruit_display_text import label
from adafruit_hx8357 import HX8357

# Release any resources currently in use for the displays
displayio.release_displays()

spi = board.SPI()
tft_cs = board.D9
tft_dc = board.D10

display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)

display = HX8357(display_bus, width=480, height=320)

# Make the display context
splash = displayio.Group()
display.show(splash)

color_bitmap = displayio.Bitmap(480, 320, 1)
color_palette = displayio.Palette(1)
color_palette[0] = 0x00FF00  # Bright Green

bg_sprite = displayio.TileGrid(color_bitmap, pixel_shader=color_palette, x=0, y=0)
splash.append(bg_sprite)

# Draw a smaller inner rectangle
inner_bitmap = displayio.Bitmap(440, 280, 1)
inner_palette = displayio.Palette(1)
inner_palette[0] = 0xAA0088  # Purple
inner_sprite = displayio.TileGrid(inner_bitmap, pixel_shader=inner_palette, x=20, y=20)
splash.append(inner_sprite)

# Draw a label
text_group = displayio.Group(scale=3, x=137, y=160)
text = "Hello World!"
text_area = label.Label(terminalio.FONT, text=text, color=0xFFFF00)
text_group.append(text_area)  # Subgroup for text scaling
splash.append(text_group)

while True:
    pass
Does anybody have any clue as to why I am getting no video output at all? Is my display dead? The Feather is working just fine, I can test the LED and NeoPixel and it works just fine. Any help would be much appreciated!

User avatar
blakebr
 
Posts: 942
Joined: Tue Apr 17, 2012 6:23 pm

Re: RP2040 Feather (Pink) with HXD8357D LCD

Post by blakebr »

Hello,

For starters your:

Code: Select all

while True:
pass
should look like:

Code: Select all

while True:
    pass
Indent required.
Do you get any error code in REPL?
You can use </> to include code.

Bruce

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: RP2040 Feather (Pink) with HXD8357D LCD

Post by adafruit_support_carter »

Please post a photo of your actual setup showing how everything is connected.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”