void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(27, OUTPUT);
pinMode(26, INPUT);
}
void loop() {
int button = digitalRead(26);
if(button == 0){
digitalWrite(27, LOW);
}
else{
digitalWrite(27, HIGH);
}
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}