void setup() {
// put your setup code here, to run once:
pinMode(8, OUTPUT);
pinMode(7, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int val = digitalRead(7);
digitalWrite(8, val);
}
void setup() {
// put your setup code here, to run once:
pinMode(8, OUTPUT);
pinMode(7, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int val = digitalRead(7);
digitalWrite(8, val);
}