void setup() {
// put your setup code here, to run once:
pinMode(13, OUTPUT); // LED
pinMode(2, INPUT); // BUTTON
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(2) == HIGH){ // IF THE BUTTON IF PRESS
digitalWrite(13, HIGH); //TURN ON
}
else{
digitalWrite(13, LOW); //TURN OFF
}
}