ymehta616km616
Published © GPL3+

Arduino blinking light!

You will build an easy Arduino project that will blink lights for an amount of time.

BeginnerFull instructions provided628
Arduino blinking light!

Things used in this project

Story

Read more

Schematics

where to put the led

Code

Untitled file

C/C++
copy and paste it on to arduino ide
void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

int i = 1000;

void loop() {
  if (i <= 4000)
  {
  i = i + 1000;
  digitalWrite(LED_BUILTIN, HIGH);  
  delay(i);              
  digitalWrite(LED_BUILTIN, LOW);
  delay(i);
}
}

Credits

ymehta616
0 projects • 0 followers
km616
0 projects • 1 follower

Comments