const int buttonPin = 8;
void setup()
{
Serial.begin( 9600);
Serial.println( "The sketch with delay has started");
pinMode( buttonPin, INPUT_PULLUP);
}
void loop()
{
if( digitalRead( buttonPin) == LOW)
{
Serial.println( "V V");
delay( 500);
Serial.println( "V V");
delay( 500);
Serial.println( "V V");
delay( 500);
Serial.println( "------------------");
}
}