Arduino software
What is Arduino Programming?
Arduino consists of both a physical programmable circuit
board (often referred to as a microcontroller) and a piece of
software, or IDE (Integrated Development Environment) that
runs on our computer, used to write and upload computer
code to the physical board
Arduino Software
• Once the circuit has been created on the breadboard, we will
need to upload the program (known as a sketch) to the Arduino. The
sketch is a set of instructions that tells the board what functions it
needs to perform.
• An Arduino board can only hold and perform one sketch at a
time.
• The software used to create Arduino sketches is called the IDE,
which stands for Integrated Development Environment.
Program Explanation
• Each line is ended with a semicolon (;)
• Initially we have to define or initialize the led with its pin
number.
• In the setup() method
We want to set the led to the output mode. We do this by calling a
special function called pin Mode (pin No, I/O)
• Since we are dealing with an output, we need to set it to a
constant called OUTPUT. If you were working with a sensor or
input it would be INPUT
• In the loop() method
Since the led are connected to digital pins, which are the
output modes, we use special method called Digital
Write (LED pin, HIGH/LOW)
• HIGH/LOW state indicates ON/OFF of LED
• Here, delay denotes the duration of LED pin to be
in HIGH or LOW state