Open bluenlive opened 4 years ago
Changing the buffer_size in ILI9341_Draw_Colour_Burst() to Size * 2 was the solution!
I was getting weird effects when trying to use vertical lines, they changed color mid way.
This is most definitely a bug causing stack corruption when the requested Size < BURST_MAX_SIZE
and odd (look at the for
loop immediately after). The fix above worked for me as well.
Thank you for your great work!
BTW, I think following line should be fixed
Buffer_Size = Size;
toBuffer_Size = Size * 2;
It also causes that ILI9341_Draw_Char() works not properly. When Size > 1 drawn character seems not clean.
https://github.com/martnak/STM32-ILI9341/blob/2ed24b6fbbd080bb79a21d21ba395926898ce31a/Src/ILI9341/ILI9341_STM32_Driver.c#L354