Circuit 13901 2

By Csjohnston

//123-aa189
// set pin numbers:
const int buttonPin = 2;
const int buttonPin1 = 3;
const int ledPin =  13;
const int ledPin1 = 12;
int buttonState = 0;
int buttonState1= 0;


void setup() {
  
  pinMode(ledPin, OUTPUT);
  pinMode(ledPin1, OUTPUT);
  pinMode(buttonPin, INPUT); 
  pinMode(buttonPin1, INPUT);

}

void loop(){
  
  buttonState = digitalRead(buttonPin);
buttonState1 = digitalRead(buttonPin1);

  if (buttonState == HIGH) {     
    // turn LED on:    
    digitalWrite(ledPin, HIGH);  
  } 
  else {
    // turn LED off:
    digitalWrite(ledPin, LOW); 
  }

  if (buttonState1 == HIGH) {     
    // turn LED on:    
    digitalWrite(ledPin1, HIGH);  
  } 
  else {
    // turn LED off:
    digitalWrite(ledPin1, LOW); 
  }
}