Connect with us

Arduino

Discussion in 'Microcontrollers, Programming and IoT' started by pavankukkala, Oct 14, 2015.

Scroll to continue with content
  1. pavankukkala

    pavankukkala

    78
    0
    Mar 25, 2014
    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
     
  2. Harald Kapp

    Harald Kapp Moderator Moderator

    11,710
    2,718
    Nov 17, 2011
  3. BootLeg

    BootLeg

    2
    0
    Oct 27, 2015
    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!
     
  4. Torch

    Torch

    9
    1
    Jul 26, 2012
    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
     
  5. thaers3d

    thaers3d

    5
    1
    Nov 7, 2015
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-