User Tools

Site Tools


arduino:arduino_crash_course:program_structure

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
arduino:arduino_crash_course:program_structure [2013/07/07 22:32] mithatarduino:arduino_crash_course:program_structure [2015/03/12 21:06] – [Main loop] mithat
Line 13: Line 13:
  
 void loop() { void loop() {
-  // Stuff in here gets run over and over and over again (until you turn the power off).+  // Stuff in here gets run over and over and over again  
 +  // (until you turn the power off).
 } }
 </file> </file>
-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).+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 the Arduino can manage until you halt the program (e.g., by removing the power, pushing the reset button, or loading a new program).
  
 ===== Blink an LED ===== ===== Blink an LED =====
arduino/arduino_crash_course/program_structure.txt · Last modified: 2017/12/06 01:01 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki