Hi,
I'm a little desperate and I'm hoping someone can give me an answer.
I'm trying to display bitmap images on the LCD screen of the '2.4" TFT Featherwing'. I use the displayio module, the ILI9341 driver and the latest version of Circuitpython (5.3.0).
I can display text and draw shapes, but I can't display images with 'OnDiskBitmap()'.
Everything works fine with Pyportal or with a Feather M4 Express + TFT Featherwing, but as soon as I run the same code on the Feather nRF52840 + TFT Featherwing, it doesn't work. The display freezes after a few lines of pixels.
I should point out that I use the same versions of Cicuitpython, libraries, code and image files in all my tests.
Please help me, because this is really out of my field of expertise !
Mike
Here is my code :
import` board
import time
import displayio
import terminalio
from adafruit_display_text import label
import adafruit_ili9341
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, reset=board.D6)
display = adafruit_ili9341.ILI9341(display_bus, width=320, height=240)
time.sleep(1)
splash = displayio.Group(max_size=10)
display.show(splash)
g = displayio.Group()
f = open("/001.bmp", "rb")
pic = displayio.OnDiskBitmap(f)
t = displayio.TileGrid(pic, pixel_shader=displayio.ColorConverter())
g.append(t)
display.show(g)
display.refresh()
print("refreshed")
f.close()
while True:
pass
Hi,
I'm a little desperate and I'm hoping someone can give me an answer.
I'm trying to display bitmap images on the LCD screen of the '2.4" TFT Featherwing'. I use the displayio module, the ILI9341 driver and the latest version of Circuitpython (5.3.0).
I can display text and draw shapes, but I can't display images with 'OnDiskBitmap()'.
Everything works fine with Pyportal or with a Feather M4 Express + TFT Featherwing, but as soon as I run the same code on the Feather nRF52840 + TFT Featherwing, it doesn't work. The display freezes after a few lines of pixels.
I should point out that I use the same versions of Cicuitpython, libraries, code and image files in all my tests.
Please help me, because this is really out of my field of expertise !
Mike
Here is my code :