40 Hz Square wave with 8kHz tone

It is code that does not stop and wait for something to finish.

For example, you want to flash (continually) 12 LEDs all at different frequencies, you need to then have 12 non blocking TIMERS, one for each LED.