Maker Pro
Maker Pro

Arduino

pavankukkala

Mar 25, 2014
78
Joined
Mar 25, 2014
Messages
78
Hi friends,
Its nice to see u after a long time,
Presently I have started the ARDUINO Micro controller and I am having one doubt i.e, where the program execution will start and why the main function is not used here.here
 

BootLeg

Oct 27, 2015
2
Joined
Oct 27, 2015
Messages
2
The setup() section is first and these instructions are executed at power on. Then the program in loop() is executed. It is loop() that takes the place of main().

Arduinos can be fun to use so ... enjoy!
 

Torch

Jul 26, 2012
9
Joined
Jul 26, 2012
Messages
9
Hi Pavan,
Could I just add, that loop() is executed as a indefinite loop and is different from main() which is executed once only. The setup() is executed first and is generally used to configure outputs, registers, and peripherals. Arduino is great to start microcontroller programming with and resources on the internet are fairly comprehensive
 
Top