Skip to content

jdevfullstack-tutorials/blinking-led-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Blinking LED Arduino

This is a blinking LED activity as the intro for Arduino Code programming.

The Arduino Code

Arduino is both software and hardware. Right there, you can control the design.

There are two built-in functions in Arduino Code: void setup and void loop.

void setup is where you tell the computer whether an electronic component being programmed is an output device. Other initial setup can be done here, like, the initial mode of an LED is turned on.

void loop is where the execution of programs happen.

Take note of the word void. A void type of function will simply execute all the commands and will not return any value. Other functions which are not void can return values.

The Setup

You need an 3 basic LEDs, 1 breadboard and the Arduino UNO board.

Follow the wiring as indicated in the picture below:

Then, go to Code section and copy the initial code below:

 

Code Explanation

About

a blinking LED activity as the intro for Arduino Code programming

Topics

Resources

License

Stars

Watchers

Forks