void setup() {
pinMode(13,OUTPUT);
pinMode(2,INPUT);
}
void loop() {
int button1 = digitalRead(2);
if (button1 == HIGH)
{
digitalWrite(13,HIGH);
}
else
{
digitalWrite(13,LOW);
}
}
void setup() {
pinMode(13,OUTPUT);
pinMode(2,INPUT);
}
void loop() {
int button1 = digitalRead(2);
if (button1 == HIGH)
{
digitalWrite(13,HIGH);
}
else
{
digitalWrite(13,LOW);
}
}