Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Hackster is hosting Impact Spotlights: Industrial Automation. Watch the stream live on Thursday!Hackster is hosting Impact Spotlights: Industrial Automation. Stream on Thursday!
vamsivenkata
Published © GPL3+

Arduino Everything (LED);

In this tutorial, I will teach you all about how to code LEDs.

BeginnerProtip200
Arduino Everything (LED);

Things used in this project

Story

Read more

Schematics

ser1

Instructions in story. Please read.

Code

Code

C/C++
Instructions in story. Please read.
const int ledpin = 13;

void setup() {
  // put your setup code here, to run once:
  pinMode(13, OUTPUT);
//determines if pin 13 is input or output.
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(13, HIGH);
  //gives pin 13 high output.
 delay(1000);
 /*determines how many miliseconds 
  should pin 13 be given high output*/
    digitalWrite(13, LOW);
    //gives pin 13 high output.
    delay(1000);
    /*determines how many miliseconds 
  should pin 13 be given low output*/

  

}

Credits

vamsivenkata
4 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.