User Tools

Site Tools


arduino:program_structure

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
arduino:program_structure [2012/09/13 06:00] – [Main loop] mithatarduino:program_structure [2012/09/13 06:01] – [Main loop] mithat
Line 3: Line 3:
 ===== Main loop ===== ===== Main loop =====
  
-All Arduino programs (called "sketches") have the same basic structure: a ''setup'' function and a ''loop'' function. Whatever you write in the body of the ''setup'' function will happen only once--when the program starts (e.g. after you power up the Arduino, press the reset button, or load a new program). Whatever you write in the loop function will happen over and over as fast as possible until you halt the program (e.g., by removing the power, pushing the reset button, or loading a new program).+All Arduino programs (called "sketches") have the same basic structure: a ''setup'' function and a ''loop'' function. Whatever you write in the body of the ''setup'' function will happen only once--when the program starts (e.g. after you power up the Arduino, press the reset button, or load a new program). Whatever you write in the body of the ''loop'' function will happen over and over as fast as possible until you halt the program (e.g., by removing the power, pushing the reset button, or loading a new program).
  
 <file c program_structure.ino> <file c program_structure.ino>
arduino/program_structure.txt · Last modified: 2012/09/14 01:20 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki