I was trying to light up LED using arduino where my circuit is connected as below.
But the LED does not light up, even I have change the orientation.
I am using a 220ohm resistor, digital pin 7 and my code is:
const int LEDPin = 7;
void setup() {
Serial.begin(9600);//initialize serial window
pinMode(LEDPin,OUTPUT);
}
void loop() {
digitalWrite(LEDPin,HIGH);
}
I am not sure what is wrong with my circuit, perhaps the electronics components is faulty??