You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • is it correct and intended that setTimeout prevents the screen to turn off

    No, it's not intended at all, and I'm pretty convinced that isn't the case :) Are you calling g.flip()? I know that can prevent the screen from turning off...

    If you want to stop the function from being called, pass the number that was returned by setTimeout into the clearInterval function.

    Thanks! Both will work I believe as they are the same function, but that is still confusing. I'll change the docs


Avatar for Gordon @Gordon started