Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Feather M4 Express - st7789
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather M4 Express - st7789

by lds79 on Tue Apr 28, 2020 6:33 am

Hello,
I'm not able to display a bmp using as hardware: Feather M4 Express and as display: Adafruit 1.54" 240x240 Wide Angle TFT LCD.
does anyone have any suggestions to start or guide to follow

Thanks

lds79
 
Posts: 2
Joined: Tue Apr 28, 2020 6:24 am

Re: Feather M4 Express - st7789

by tannewt on Tue Apr 28, 2020 2:37 pm

Please describe what you've tried, what you expect it to do and what it actually does.

This is the guide I would follow: https://learn.adafruit.com/adafruit-1-3 ... quickstart

tannewt
 
Posts: 1692
Joined: Thu Oct 06, 2016 8:48 pm

Re: Feather M4 Express - st7789

by lds79 on Sat May 02, 2020 4:00 am

Hi,
thanks for the guide!
it was good too: https://learn.adafruit.com/circuitpytho ... bitmap-9-4

but can you tell me why the first example with: OnDiskBitmap it gives me the following error:
ValueError: Only monochrome, indexed 4bpp or 8bpp, and 16bpp or greater BMPs supported: 8 bpp given

Instead if I use the second example with: adafruit_imageload it works fine?

and the main important, there is a way to delete bitmap/group/tile to free space/memory and load another image?

Thanks so much!

lds79
 
Posts: 2
Joined: Tue Apr 28, 2020 6:24 am

Re: Feather M4 Express - st7789

by tannewt on Sun May 03, 2020 9:15 pm

ImageLoad and OnDiskBitmap support different BMP color depths to complement each other. Low color counts can fit in memory and are therefore supported with ImageLoad. Lots of colors takes more memory and must stay on the disk.

Once there are no more references to an object, the garbage collector will free the memory. You trigger that process with `gc.collect()`.

tannewt
 
Posts: 1692
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.