Hi,
Based on BRT_AN_025 Beta + BT81X
I want to upload a RAW image directly in the RAM-G and then display it.
As a test I'm using a simple 100x100px all black (or white) pixels.
That is a RAW array of 10000x 0x00 in L8.
So I first upload the 10000 bytes like this:
uint8_t *array;
array = malloc(10000);
for (uint16_t i = 0; i < 10000; i++) {
array[i] = 0x00; // 0x00 = black, 0xff = white
}
EVE_LIB_WriteDataToRAMG(array, 10000, 0);
free(array);
and then I display the bitmap like this:
EVE_LIB_BeginCoProList();
EVE_CMD_DLSTART();
EVE_CLEAR_COLOR_RGB(0, 0, 0);
EVE_CLEAR(1, 1, 1);
EVE_COLOR_RGB(255, 255, 255);
EVE_BITMAP_SOURCE(0);
EVE_BITMAP_LAYOUT(EVE_FORMAT_L8, 100 * 100, 100);
EVE_BITMAP_SIZE(EVE_FILTER_NEAREST, EVE_WRAP_BORDER, EVE_WRAP_BORDER, 100, 100);
EVE_BEGIN(EVE_BEGIN_BITMAPS);
EVE_VERTEX2F(650 * 16, 205 * 16);
EVE_END();
EVE_DISPLAY();
EVE_CMD_SWAP();
EVE_LIB_EndCoProList();
EVE_LIB_AwaitCoProEmpty();
But I get a scrambled bitmap and not a solid black (white) one.
What am I doing wrong?