// PINES
#define PIN_PULSADOR1 3
#define PIN_PULSADOR2 2
int pulsador1, pulsador2;
void setup() {
Serial.begin(9600);
// put your setup code here, to run once:
pinMode(PIN_PULSADOR1, INPUT);
pinMode(PIN_PULSADOR2, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
pulsador1 = digitalRead(PIN_PULSADOR1);
pulsador2 = digitalRead(PIN_PULSADOR2);
Serial.print("Pulsador 1: ");
Serial.print(pulsador1);
Serial.print(" ---- Pulsador 2: ");
Serial.println(pulsador2);
delay(100);
}