need a little code please tone no delay

need a alarm tone with no delay for my alarm also a countdown timer with no delay that when get to 0 sounds my loud speaker

any ideas

Look at BlinkWithoutDelay example from Arduino IDE.

See my http://www.thebox.myzen.co.uk/Tutorial/State_Machine.html Or Robin2's several things at once http://forum.arduino.cc/index.php?topic=223286.0

lcd1.noDisplay(); delay(200); lcd1.display();

need a way not to use delay

unsigned long currentMillis = millis();
      if (currentMillis - previousMillis > interval_LCD_blink) {
      // save the last time you blinked the relay
      previousMillis = currentMillis;
      // if the relay is off turn it on and vice-versa:
      if (LCD_LIGHT == LOW )
        LCD_LIGHT = HIGH;
        
      else
        LCD_LIGHT = LOW;
      // set the Relay with the RelayState of the variable:
      digitalWrite(LCD_LIGHT_PIN, LCD_LIGHT);
    }

works like a charm hope it helps others