Arduino Programming

Arduino programs are written in C or C++.

  • The Arduino IDE comes with a software library called “Wiring” from the original Wiring project which makes many common input/output operations much easier..
  • The users need only to define two functions to make an executable cyclic executive program:
  • setup(): a function run once at the start of a program that can initialize settings.
  • loop(): a function called repeatedly until the board powers off.

Example Program

Void setup()
// function to initilize
Pinmode (pinnumber ,input or output)
Void loop()
// function to be execute
Digital write (pinnumber,High or Low)