void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(12, OUTPUT);
}
void loop() {
int piscar = 0;
Serial.println("Quantas vezes deseja que o LED pisque: ");
while(Serial.available() == 0){
}
piscar = Serial.parseInt();
for(int x = 1; x <= piscar; x++){
digitalWrite(12, HIGH);
delay(1500);
digitalWrite(12, LOW);
delay(1500);
}
}