3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino Flashing LED Video

video Arduino Flashing LED Video
Watch the two following videos,
here  is the code.

int led1Pin=1;
int led2Pin=2;
int led3Pin=3;
int led4Pin=4;
int led5Pin=5;
int led6Pin=6;
int led7Pin=7;
int led8Pin=8;
int led9Pin=9;


void setup() {
  pinMode(led1Pin, OUTPUT);
  pinMode(led2Pin, OUTPUT);
  pinMode(led3Pin, OUTPUT);
  pinMode(led4Pin, OUTPUT);
  pinMode(led5Pin, OUTPUT);
  pinMode(led6Pin, OUTPUT);
  pinMode(led7Pin, OUTPUT);
  pinMode(led8Pin, OUTPUT);
  pinMode(led9Pin, OUTPUT);
}


void loop() {
  digitalWrite(led1Pin, HIGH);
  delay(100);
  digitalWrite(led1Pin, LOW);
  digitalWrite(led2Pin, HIGH);
  delay(100);
  digitalWrite(led2Pin, LOW);
  digitalWrite(led3Pin, HIGH);
  delay(100);
  digitalWrite(led3Pin, LOW);
  digitalWrite(led4Pin, HIGH);
  delay(100);
  digitalWrite(led4Pin, LOW);
  digitalWrite(led5Pin, HIGH);
  delay(100);
  digitalWrite(led5Pin, LOW);
  digitalWrite(led6Pin, HIGH);
  delay(100);
  digitalWrite(led6Pin, LOW);
  digitalWrite(led7Pin, HIGH);
  delay(100);
  digitalWrite(led7Pin, LOW);
  digitalWrite(led8Pin, HIGH);
  delay(100);
  digitalWrite(led8Pin, LOW);
  digitalWrite(led9Pin, HIGH);
  delay(100);
  digitalWrite(led9Pin, LOW);
} 

1 comment

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
0
Followers
2
Author:waterlubber