#define led 13
void setup() {
// put your setup code here, to run once:
pinMode(led, OUTPUT);
pinMode(5, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(led,digitalRead(5));
}
#define led 13
void setup() {
// put your setup code here, to run once:
pinMode(led, OUTPUT);
pinMode(5, INPUT_PULLUP);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(led,digitalRead(5));
}