multiple inputs

Hello I need a simple answer to a simple question. I've recently started programming and came across the issue
Of using to switches for a single led?
I'm completly lost.

What issue, please explain a bit more?

The simple answer is yes.

Now what was the question?

The answer may be "No" or "Maybe".

We are totally unable to answer definitively without the question.

Guessing that you want to use two switches to control one LED, I would suggest you learn how to read the state of a switch and how to connect an output. This information is available by reading topics under the Learning tab at the top of the page.

Once you have done some learning using the help supplied, ask for more help if required.

Weedpharma

I've recently started programming and came across the issue
Of using to switches for a single led?

Simple example of two button code.

//zoomkat servo button test 12-29-2011
// Powering a servo from the arduino usually *DOES NOT WORK*.

#include <Servo.h>
int button1 = 4; //button pin, connect to ground to move servo
int press1 = 0;
int button2 = 5; //button pin, connect to ground to move servo
int press2 = 0;
Servo servo1;

void setup()
{
  pinMode(button1, INPUT);
  pinMode(button2, INPUT);
  servo1.attach(7);
  digitalWrite(4, HIGH); //enable pullups to make pin high
  digitalWrite(5, HIGH); //enable pullups to make pin high
}

void loop()
{
  press1 = digitalRead(button1);
  if (press1 == LOW)
  {
    servo1.write(170);
  }    
  
  press2 = digitalRead(button2);
  if (press2 == LOW)
  {
    servo1.write(10);
  }
}