BUTTONS PROGRAM using BUTTONS 3 and 11 PINS void setup()
{
pinMode(3,INPUT);
pinMode(11,INPUT);
pinMode(9,OUTPUT);
pinMode(29,OUTPUT);
}
void loop()
{
int button1=digitalRead(3);
int button2=digitalRead(11);
if(button1==HIGH)
{
digitalWrite(9,HIGH);
}
else
{
digitalWrite(9,LOW);
}
if(button2==LOW)
{
digitalWrite(29,HIGH);
}
else
{
digitalWrite(29,LOW);
}
}