Do you have the flip comand in your main loop?
If that is all you want to display in your program I think you could use setbuffer frontbuffer() before your repeat and
loose the flip. That belongs in the main loop.
Its not usual to see a repeat until in a function. I think thats a bad idea.
If that is all you want to display in your program I think you could use setbuffer frontbuffer() before your repeat and
loose the flip. That belongs in the main loop.
Its not usual to see a repeat until in a function. I think thats a bad idea.