Kill some ears! (Have spare PIezos? Upload this code!)

5 sec in > Annoyance 1 min in > Painfull ears 5 min in > Head acke 10 min in > Fatigue (After it is turned off, its like you get head slapped.)

Use at your own responsibility.

  //Anoy-a-tron
  int flag = 1;
  if(flag==1){
    flag = 0;
  }else{
    flag = 1;
  }
  
  //Hi-Freq Buzzer Cannon
  tone(8, 10000 + (flag * 4000));
  tone(9, 12000 + (flag * 4000));
  tone(10,14000 + (flag * 4000));
  tone(11,16000 + (flag * 4000));
  
  delay(200);

Fortunately for my ears, that won't compile because it isn't a complete sketch.

Pete

hehe. Just wrap it up in a loop(){} thats all.

May I ask what the use for such a thing is supposed to be?

@330R

//Anoy-a-tron