int led = 13; //LED_BUILTIN;
int botao = 2;
int press = 0;
void setup() {
// put your setup code here, to run once:
pinMode(led, OUTPUT);
pinMode(botao, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
press = digitalRead(botao);
if(press == HIGH){
digitalWrite(led, HIGH);
}else{
digitalWrite(led, LOW);
}
}