how to draw background image using tiling technique
We are trying to draw a full screen (480x272) but using a tiling method of size 16x16 pixels. We are using a struct UI_Image for each tile, like this one below:
struct UI_Image{
touchgfx::Image image;
uint8_t image_id;
uint8_t is_created;
};
struct UI_Image ui_image[30];
For our entire screen that’s mean, we need an array of 30 x 17 = 510 structures!
But, we got many error when compiling which goes away when we use a small number like [30]… here is a screen shot of the errors
Perhaps there is a better way to achieve this tiling technique?
Also, could we draw using a RAM address instead of FLASH address, which could allow procedural changes in time?
