void setup() {
pinMode(13, OUTPUT);
pinMode(8, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
digitalWrite(13,digitalRead(8));
Serial.println(digitalRead(8));
}
void setup() {
pinMode(13, OUTPUT);
pinMode(8, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
digitalWrite(13,digitalRead(8));
Serial.println(digitalRead(8));
}