#Adafruit 1.44" Color TFT LCD Display wit...
1 messages · Page 1 of 1 (latest)
I should also say that this display is a few years old, the back it only says (ST7735) so I tried the code with the ST7735 driver, instead of ST7735R, and also nothing. Maybe the RP2040 requires something extra when compared to the other feather boards?
and for the sake of completeness, the code:
import board
import displayio
from adafruit_st7735r import ST7735R
# Release any resources currently in use for the displays
displayio.release_displays()
spi = board.SPI()
tft_cs = board.D10
tft_dc = board.D11
display_bus = displayio.FourWire(
spi, command=tft_dc, chip_select=tft_cs, reset=board.D9
)
display = ST7735R(display_bus, width=128, height=128)
# Make the display context
splash = displayio.Group()
display.show(splash)
color_bitmap = displayio.Bitmap(128, 128, 1)
color_palette = displayio.Palette(1)
color_palette[0] = 0xFF0000
bg_sprite = displayio.TileGrid(
color_bitmap, pixel_shader=color_palette, x=0, y=0
)
splash.append(bg_sprite)
while True:
pass
I would suggest double checking all wiring.
Also, are you getting any errors in the serial console?
Nop, no errors at all, I'll snap a picture and share it as well.
Maybe there's no board.SPI(), like on the Pico
You could try it like in the SPI example here: https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/pinouts
Using board.SPI() is valid and uses SCK, MO and MI.
Mh, must be that special Feather treatment! 🙂
Yes
Documented at the bottom of this section - https://learn.adafruit.com/adafruit-feather-rp2040-pico/pinouts#logic-pins-3084824
Seems right. Are you using the example code from that article?
Yes, just changed a few pins to match my picks for rst dc and cs.