const int LED = 13;
// put your setup code here, to run once:
int Count = 0;
void setup() {
pinMode(LED, OUTPUT);
Serial.begin(9600);
}
void loop() {
if (Count < 10) {
digitalWrite(LED, HIGH);
delay(500);
digitalWrite(LED, LOW);
delay(500);
Count ++;
Serial.println(Count);
// put your main code here, to run repeatedly:
}
else{
digitalWrite(LED, LOW);
}
}