so i just got my arduino like two days ago and i am trying to make a two LED's switch were if is no current going to pin 4 and LED will be flashing but if it is high anouther led turns on instead and does not flash. i typed up the could and it gives me no errors but when i plug it all in nothing happens
here is my code
void setup() {
 pinMode(12, OUTPUT);
 pinMode(9, OUTPUT);
 pinMode(4, INPUT);
 pinMode(7, OUTPUT);
}
int brightness = 0;
int fadeAmount = 5;
void loop ()
{
 digitalWrite(7, HIGH);
Â
 if( 4 == HIGH)
 {
  analogWrite(9, brightness); Â
  brightness = brightness + fadeAmount;
  if (brightness == 0 || brightness == 255) {
    fadeAmount = -fadeAmount ;
    } Â
    delay(30);             Â
 }
  if(4 == LOW)
  {
   digitalWrite(12, HIGH);
  }
}