Difference between revisions of "Tutorial: Introduction to the Arduino"
(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 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)
Contents
The Reference Pages
Good Tutorials on the Web
Notes for Mac Users
- You may have to install special drivers for your Mac to see the Arduino through the USB Port. Look here for more info: http://www.ftdichip.com/Drivers/VCP.htm
An Introduction to C in the Arduino Context
Comments
// this is a comment /* and so is this */ /* and this as well */