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