Touch Gfx Format pixel 8 bits grey scale monochrome
Hello
I have a monochrome RGB display which expects on the green pins a 8 bits grey scale value, 0x00 is black and 0xFF is white . I managed to make it work without TouchGfx, configuring LTDC with L8 pixel format on layer 0 and using a LUT (HAL_LTDC_ConfigCLUT and HAL_LTDC_EnableCLUT functions).
Now I want to use the display with TouchGfx.
I see I can not select a Frame buffer Pixel Format (LTDC) which would make Touch Gfx to write on frame buffer with a 8 bits grey scale format.

I selected ABGR2222, in order to test and see what happened.
I designed a few boxes of different grey scale on TouhGfx Designer. I generated code from TouchGfx Designer. I can see on my TouchGFXGeneratedHAL.cpp that a LCD8bpp_CLUT[] is used.
The program runs and the display shows something.
The problem is I can not see the whole range of 256 gray scale. It seems I only have a few of grey scales. I have an snippet which tries to show smoothly the grey scale on a box color, I only get a few of greys, not the whole range scale.
void InstaScreenView::handleTickEvent(){
greytickcounter++;
if(greytickcounter >= 6U){ // 6 frames 0.1 second
greytickcounter = 0U;
//InstaBox01.setColor(touchgfx::Color::getColorFromRGB(greycounter, greycounter, greycounter));
InstaBox01.setColor(greycounter);
InstaBox01.invalidate();
greycounter++;
if(greycounter >= 255U){
greycounter = 0U;
}
}
}
Regards
