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

From dftwiki3
Jump to: navigation, search
(An Introduction to C in the Arduino Context)
Line 36: Line 36:
 
* Done with the '''Serial''' library
 
* Done with the '''Serial''' library
 
* Use '''Serial.begin()''' to set the baud rate (# of bits per second)
 
* 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]]( ... )'''
+
* 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.println( ... ) or Serial.print( ... )