Bootscreens April 12, 2022 06:42PM |
Registered: 4 years ago Posts: 285 |
Re: Bootscreens April 12, 2022 11:17PM |
Admin Registered: 13 years ago Posts: 7,001 |
Re: Bootscreens April 13, 2022 05:31PM |
Registered: 4 years ago Posts: 285 |
Quote
Dust
@rq3
That is the realty of micro controllers. They have limited flash space.
If you stick a high res high colour display on it then yes, a full sized full colour image takes up a lot of flash.
480x320x16 = 307200 bytes of data that is 300K
Animation on that at worst requires an additional 300k per frame.
The marlin Bitmap Converter, is exactly that bitmap, ie black and white. This is designed for the 128x64 based mono displays.
You use the provided tool buildroot/share/scripts/gen-tft-image.py to generate the C data such as Marlin/src/lcd/tft/images/bootscreen_480x320x16.cpp
Or you use TFT_LVGL_UI which load images etc from the sdcard.