I am trying to use The Flexcolor with Cache.
GUIDRV_FlexColor_SetFunc(pDevice, &PortAPI, GUIDRV_FLEXCOLOR_F66709, GUIDRV_FLEXCOLOR_M16C0B8); // without cache, works
...GUIDRV_FLEXCOLOR_M16C1B8); // with cache does not work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-03-13 03:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-04 01:18 AM
It's a shot in the dark after two years, but.. did you manage to make it work with GUIDRV_FLEXCOLOR_M16C1B8? I have the same issue, when selecting GUIDRV_FLEXCOLOR_M16C1B8 the screen gets all messed up.
Should I initialize the cache somewhere?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-06 12:59 AM - edited ‎2023-09-06 01:00 AM
Oh well, In case another one stumbles upon this thread while searching for answers, for me the solution was to change GUI_NUMBYTES to allocate enough memory to include the cache. So you have to include 500B for the driver to work, the size of the line buffer (LCD_XSIZE × ((BitsPerPixel + 7) ÷ 8)) and the size of the cache (LCD_XSIZE × LCD_YSIZE × BytesPerPixel)
Hope this helps someone