| Arduino | 1 |
| LED | 1 |
| Resistor | 330ohm |
- Connection
- Connect one terminal of LED to 330 ohm resistor and one terminal to ground of arduino.
- Connect one terminal of resistor to arduino PIN 7.
- Code
int PIN =7;
void setup()
{
pinMode(PIN, OUTPUT);
}
void loop()
{
digitalWrite(PIN, HIGH);
delay(400);
digitalWrite(PIN, LOW);
delay(800);
}
