Prev Index Next

Beeper 1 and 2

Timer test

Timer test

Notes: These two programs showcase the use of the timer. Both programs start a 1 second timer when they are created and every time the timer goes off they switch colours and beep. The difference between these two programs is that Beeper 1 processes the timer messages in the programs message loop while Beeper 2 provides a separate callback function for it.

Description: A screenshot of two programs in front of a window containing code. The top program has a red background and the bottom window has a blue background.

Prev Index Next