touchgfx custom spi single and double buffer
I'm working with a Nucleo L476 board, I have a 128x160 SPI TFT display connected. I have no issues with the display and the bare metal code I wrote but wanted to learn touchgfx. No issue with the partial buffer implementation but I'm stuck at single and double buffer. The partial buffer code generated by cubeMX had several routines and comments that made it easy to figure out what I needed to do to interface to the AL. the single and double buffer seem more cryptic to me and my c++ knowledge is limited. I'm able to display images and cycle thru them but when I introduce a touch button the button graphics get corrupted when I release the button. I'm sure I'm doing something wrong in how I implemented the code in TouchGFXHAL.cpp - flushFrameBuffer. advanceFrameBufferToRect confuses me. I think I've seen everything on the touchgfx help site and they discuss this to some extent but I guess I'm missing something.
Does anyone have some example code of how they've implemented flushframebuffer in a scenario like this.
I use a tick tim2 int to activate touchgfxsignalvsync and all that seems to be working well.I use SPI DMA and that seems to be working as well.
in double buffer scenario is the second framebuffer only used if needed because the graphics demand it or is it always part of the flow.
Thanks
