I'm trying to get an LED to light up from pressing and holding a button down, this code is written from what I've learned so far. I'm really new to this and this is the best I could do.
Here's the code:
int Input = 1;
void setup() {
// put your setup code here, to run once:
pinMode(12,INPUT);
pinMode(13,OUTPUT);
digitalWrite(13,LOW);
}
void loop() {
// put your main code here, to run repeatedly:
if Input = 0
digitalWrite(13,HIGH); if Input = 1
digitalWrite(13,LOW);
}