int bswitch=4;
int buzzer=13;
int vup=6;
int vdown=5;
int volume=0;
int fade=3;
void buzz(){
tone(13, 300);
delay(10000);
}
void setup() {
// put your setup code here, to run once:
pinMode(bswitch, INPUT);
pinMode(vup, INPUT);
pinMode(vdown, INPUT);
pinMode(buzzer, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if (digitalRead(bswitch)==HIGH){
buzz();
if(digitalRead(vup)==HIGH){
}
}
else{
noTone(13);
}
}