1315Fermer
Mega ShockedLe 16/05/2018 à 00:28
Hi Zerosquare,

Waiting on vertical blanks is always built into every scene we program on the Neo...
if the previous code had a VBL would it be viable for the purpose of timing in your opinion?
Kind of like counting Vertical Blanks like you suggested?

If this would suffice then maybe my example could be used for timing purposes.

#define TIME 100 BYTE textTimer=0; while (1) { waitVBlank(); //Waiting on vertical blank per cycle if (++textTimer == TIME) { textTimer=0; // write text or erase text } }