Hi again Michael,
I see another post that has similar problem like me, and in that post you just giving a guide about the code.
void setVBIFlag() {
inVBI = true;
}
tv.set_vbi_hook(&setVBIFlag);
if (inVBI) {
// communicate with compass here
inVBI = false; // reset the flag so we only try to communicate once per frame
}
Is that right?Because, I’m just using that code inside my code and everything is fine when I’m compile the program, but it still doesn’t have a communication between the sensor and Arduino. It’s like the code never jump to the if (inVBI) part. I don’t have any idea why it is not working. Maybe you have any advise?
Thank you.
Best Regards.
Mario