Rattlesnake

Ryan Ferguson

void setup() {

  Serial.begin(9600);

  pinMode(13, OUTPUT);

  pinMode(8, INPUT_PULLUP);

}


void loop() {

  if (digitalRead(8) == false) {

    digitalWrite(13, HIGH);

  }


  else {

    digitalWrite(13, LOW);

  }

  delay(30);

}