2 Matching Annotations
  1. Sep 2020
    1. The .ino files are all combined together and presented to the compiler as a single .cpp file to compile. The Arduino libraries are compiled from source as well, and everything is linked into a binary.

      This is why there are no includes for builtins like pinMode and digitalWrite.

    1. setup(); for (;;) { loop(); if (serialEventRun) serialEventRun(); }

      The main of Sparkfun's Ardunio code. Note setup is called and then loop is called inside an infinite loop. setup is used for configuring pins, etc and loop is the actual program that is executed.