538 views
in Getting started by

Hi,

I'm trying to implement the EwLoadExternBitmap() function in the main.c file according to this page but I'm unable to find the header file "ewextpxl_RGBA8888.h". I'm starting from a "blank project" configured for the STMF769D.

What am I missing?

Thanks.

2 Answers

0 votes
by
Hi,

the include file depends on the color format of the Graphics Engine that you are using.

By default the color format for STM32F769-Discovery is RGB565 - please try to include the file "ewextpxl_RGB565_RGBA8888.h" which is located within the folder /PlatformPackage/RGB565 within your Build Environment.

Best regards,

Manfred.
by
Okay, I could compile the entire project with the funcion EwLoadExternBitmap() implemented. However, in the Embedded Studio Wizard, I still get the error message : "call to an unknown method 'EwLoadExternBitmap()' ?
by

The function EwLoadExternBitmap() seems to be implemented for your target - for Embedded Wizard Studio it is still unknown (because it is C code for STM32). Please have a look to the section Extern Bitmap and Prototyping.

0 votes
by
Hi,

I could not find any "ewextpxl..." header files in Windows package. Did i miss something or do i have to use other files instead?
by
Hi,

all the necessary header files are located in the Windows Platform Package, e.g. \Program Files (x86)\Embedded Wizard x.xx\Platforms\Tara\Win32\RGBA8888\GFX. The "ewextpxl.." header files are not used/necessary in case of Windows.

Best regards,

Manfred.
by

Hallo Manfred,

but where do i get the defines for shifting the bytes to the depending color?

red   = Color.rgbRed   << EW_COLOR_CHANNEL_BIT_OFFSET_RED;
green = Color.rgbGreen << EW_COLOR_CHANNEL_BIT_OFFSET_GREEN;
blue  = Color.rgbBlue  << EW_COLOR_CHANNEL_BIT_OFFSET_BLUE;

 

 

by

Hi,

thanks for your input. In fact, the ewextpxl.... header files are not included in the setup of Embedded Wizard Studio.

We will add them to the next release version.

Meanwhile, you can put the following lines to your implementation (instead of #include "ewextpxl_RGBA8888.h"):

/* If not explicitly defined, assume default bit positions for the RGBA channels
   within a pixel memory. */
#ifndef EW_COLOR_CHANNEL_BIT_OFFSET_RED
  #define EW_COLOR_CHANNEL_BIT_OFFSET_RED    0
#endif

#ifndef EW_COLOR_CHANNEL_BIT_OFFSET_GREEN
  #define EW_COLOR_CHANNEL_BIT_OFFSET_GREEN  8
#endif

#ifndef EW_COLOR_CHANNEL_BIT_OFFSET_BLUE
  #define EW_COLOR_CHANNEL_BIT_OFFSET_BLUE  16
#endif

#ifndef EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA
  #define EW_COLOR_CHANNEL_BIT_OFFSET_ALPHA 24
#endif

Then you can compile your code. But anyhow, we will add the headers to the next release version.

Thanks and best regards,

Manfred.

Embedded Wizard Website | Privacy Policy | Imprint

...