The pgm worked fine until I put in this beep function and called it, so the problem has to do with the function. Coming back from
the function it will not execute the serial.print('A') line, or any of the other lines in the switch statements after returning from Beep().
//function
void Beep()// beep the piezo function
{
tone(5,1000);
delay(185);//duration.
//the duration part of the command doesn't seem to work.
noTone(5);
}
//In loop ( part of a switch statment)
Beep();//beep piezo on button push
Serial.print('A'); //Serial.print("End Induct");//to print the button push to the console
dalsault:
The pgm worked fine until I put in this beep function and called it, so the problem has to do with the function. Coming back from
the function it will not execute the serial.print('A') line, or any of the other lines in the switch statements after returning from Beep().
//function
void Beep()// beep the piezo function
{
tone(5,1000);
delay(185);//duration.
//the duration part of the command doesn't seem to work.
noTone(5);
}
//In loop ( part of a switch statment)
Beep();//beep piezo on button push
Serial.print('A'); //Serial.print("End Induct");//to print the button push to the console