int BP=9,LED=8;
void setup() {
pinMode(BP, INPUT);
pinMode(LED, OUTPUT);
}
void loop() {
if(digitalRead(BP)==HIGH){
digitalWrite(LED,HIGH);
}
else{
digitalWrite(LED,LOW);
}
}
int BP=9,LED=8;
void setup() {
pinMode(BP, INPUT);
pinMode(LED, OUTPUT);
}
void loop() {
if(digitalRead(BP)==HIGH){
digitalWrite(LED,HIGH);
}
else{
digitalWrite(LED,LOW);
}
}