Difference between revisions of "Tutorial: Introduction to the Arduino"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- ==The Reference Pages== * [http://arduino.cc/en/Reference/HomePage | The Arduino Language Reference] * [http://arduino.cc/en/Guide/Windows | The ''Getting Started''...")
 
(An Introduction to C in the Arduino Context)
Line 15: Line 15:
  
 
==An Introduction to C in the Arduino Context==
 
==An Introduction to C in the Arduino Context==
 +
 +
===Comments===
 +
 +
// this is a comment
 +
/* and so is this */
 +
/* and
 +
    this
 +
    as
 +
    well */
  
 
===Setup() and Loop()===
 
===Setup() and Loop()===
Line 23: Line 32:
 
===I/O===
 
===I/O===
  
* Output strings from the Arduino
+
====Output strings from the Arduino to Laptop====
 +
 +
* Done with the '''Serial''' library
 +
* Use '''Serial.begin()''' to set the baud rate (# of bits per second)
 +
* Then output strings with '''Serial.[[http://arduino.cc/en/Serial/Println|println]]( ... )''' or '''Serial.[[http://arduino.cc/en/Serial/Print |print]]( ... )'''

Revision as of 14:27, 20 April 2011

--D. Thiebaut 15:18, 20 April 2011 (EDT)


The Reference Pages

Good Tutorials on the Web

Notes for Mac Users

An Introduction to C in the Arduino Context

Comments

// this is a comment
/* and so is this */
/* and
    this 
    as 
    well */

Setup() and Loop()

I/O

Output strings from the Arduino to Laptop

  • Done with the Serial library
  • Use Serial.begin() to set the baud rate (# of bits per second)
  • Then output strings with Serial.[[1]]( ... ) or Serial.[|print]( ... )