#define BOT 3
void setup() {
Serial.begin(9600);
pinMode(BOT,INPUT_PULLUP);
}
void loop() {
int x = 0;
while(x<=10){
Serial.print("Valor -> ");
Serial.println(x);
while(digitalRead(BOT)==0){}
x=x+1;
delay(500);
}
}
#define BOT 3
void setup() {
Serial.begin(9600);
pinMode(BOT,INPUT_PULLUP);
}
void loop() {
int x = 0;
while(x<=10){
Serial.print("Valor -> ");
Serial.println(x);
while(digitalRead(BOT)==0){}
x=x+1;
delay(500);
}
}