TinyCircuits Forum

TinyCircuits Products => TinyDuino Processors & TinyShields => Topic started by: edamame on October 22, 2018, 02:43:34 AM

Title: TinyScreen+ vsync
Post by: edamame on October 22, 2018, 02:43:34 AM
Hey all! Been programming since the 8-bit days but relatively new to the Arduino world. I bought a TinyScreen+ and have had a ton of fun playing with it so far.

Right now when I do any animation I get a lot of "tearing" because my screen flips aren't synchronized to the vertical refresh. I dug up the SSD1331 datasheet and it mentions there being an "FR synchronization signal" specifically for sync. Is there any way to read back this signal from the display driver? I searched all over but couldn't find anything.
Title: Re: TinyScreen+ vsync
Post by: Ben Rose on October 25, 2018, 06:03:50 PM
Hi- great job finding that in the SSD1331 datasheet. I took a look into this in the past, unfortunately the signal isn't brought out in the flex tail so we're stuck with "send as fast as possible", which does seem to work acceptably- are you using DMA to transfer the data? We have a couple examples of this.
Title: Re: TinyScreen+ vsync
Post by: edamame on October 25, 2018, 06:18:38 PM
Yeah, I'm using DMA and double-buffering so I can upload the frame while rendering the next one and it's working fine, I'm just being a perfectionist!

I will keep my fingers crossed for the next version to have hardware sprites and a vsync register I can use... :)