To have a non-blocking function call executed based on FPS.
- Include Timer.h :
#include <Timer.h>
- Create a timer with the callback of choice :
Timer timer = Timer(enterframe, 60);
- in the loop function, call on
timer.tick()
Your enterframe function will be called every 60fps top.