official code to show how Maple mini's timer works