#define LED_PIN 13
#define BUTTON_PIN 12
//insures the names of the varible
void setup()
{
pinMode(LED_PIN, OUTPUT);
pinMode(BUTTON_PIN, INPUT_PULLUP);
//Tells the computer that the code is going to have to put info out and put info in
}
void loop()
{
int pinState = digitalRead(BUTTON_PIN);
//Always seperate different codes with blank spaces
if(pinState == LOW)
{ //No semi coloms after if and else or doesn't work
digitalWrite(LED_PIN, HIGH);
}
else
{
digitalWrite(LED_PIN, LOW);
}
//
}