1
Discussion - EVE / FT800 Bitmap Handles
« on: July 13, 2020, 11:02:24 AM »
Hello,
I am using the FT800 chip and am trying to load different icons to be displayed on the screen. I have several different icons which all fit into one of 3 size categories. Consequently, my plan was to use three different bitmap handles to display the different sized icons.
However, whenever I set the bitmap handle to anything other than 0, it does not seem to work and the icons appear to be loaded to bitmap handle 0 anyway. This of course causes a problem because the different sized icons are all in the same bitmap handle and therefore do not all display properly.
I am using CMD_INFLATE to load the icons on to the chip and it all appears to work fine apart from the bitmap handle issue. My code is written as follows:
1. Perform all required chip initialisation.
2. Set the required bitmap handle (e.g. to 1).
3. Send CMD_INFLATE followed by required RAM_G address where image will be stored.
4. Send all the bytes of data from compressed icon file (with padding if required).
5. Get the end address of decompressed data using CMD_GETPTR to know the next RAM_G address to use.
6. Repeat steps 2-5 until all icons are loaded.
7. Use BITMAP_SOURCE, BITMAP_LAYOUT and BITMAP_SIZE to configure all the appropriate settings.
8. Send BEGIN(BITMAPS) and then use VERTEX2II to try and display an icon at the required location.
As stated above, when using bitmap handle 0 with VERTEX2II the icons appear but using any other handle, it does not appear to work. Is there something else I need to do to set the bitmap handle before writing the icon data, etc?
Thanks in advance!
Amy
I am using the FT800 chip and am trying to load different icons to be displayed on the screen. I have several different icons which all fit into one of 3 size categories. Consequently, my plan was to use three different bitmap handles to display the different sized icons.
However, whenever I set the bitmap handle to anything other than 0, it does not seem to work and the icons appear to be loaded to bitmap handle 0 anyway. This of course causes a problem because the different sized icons are all in the same bitmap handle and therefore do not all display properly.
I am using CMD_INFLATE to load the icons on to the chip and it all appears to work fine apart from the bitmap handle issue. My code is written as follows:
1. Perform all required chip initialisation.
2. Set the required bitmap handle (e.g. to 1).
3. Send CMD_INFLATE followed by required RAM_G address where image will be stored.
4. Send all the bytes of data from compressed icon file (with padding if required).
5. Get the end address of decompressed data using CMD_GETPTR to know the next RAM_G address to use.
6. Repeat steps 2-5 until all icons are loaded.
7. Use BITMAP_SOURCE, BITMAP_LAYOUT and BITMAP_SIZE to configure all the appropriate settings.
8. Send BEGIN(BITMAPS) and then use VERTEX2II to try and display an icon at the required location.
As stated above, when using bitmap handle 0 with VERTEX2II the icons appear but using any other handle, it does not appear to work. Is there something else I need to do to set the bitmap handle before writing the icon data, etc?
Thanks in advance!
Amy