Huzaim
Published © Apache-2.0

LED Shine!

This project may be basic, yes, but it is good and fun for creators old and new! Look back at your start or start with this!

BeginnerShowcase (no instructions)997
LED Shine!

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
You can use others;I just used this one!
×1
LED (generic)
LED (generic)
It will only work with one!
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Materia 101
Arduino Materia 101

Story

Read more

Schematics

Schematic

It Works!

Code

LEDcode

Arduino
It works with an Arduino UNO and one LED!
// Example 01: Blinking LED
#define LED 13  //LED connected to
                           // digital pin 13
void setup ()
{
pinMode(LED, OUTPUT);  //sets as digital                                                          
                                      // pin 13
 
}
 
Void loop()                                                                                                                             
{
 
digitalwrite(LED,HIGH,Green); // turns the LED on
delay(1000);               //waits for a second
digitalwrite(LED,LOW,Green); //turns the LED off
delay(1000);                 //waits for a second
}

Credits

Huzaim
1 project • 0 followers

Comments