on older Arduino boards, such as the Duemilanove or Diecimila. All code in
this book has been tested with Arduino 1.0.6 and 1.6.0.
Code Examples and Conventions
Although this is a book about open-source hardware and electronics, you will
find a lot of code examples. We need them to bring the hardware to life and
make it do what we want it to do.
We’ll use C/C++ for all programs that will eventually run on the Arduino. For
applications running on our PC, we’ll mainly use JavaScript and Processing.
6
In Serial Communication Using Various Languages, on page 255, you’ll also
learn how to use several other programming languages to communicate with
an Arduino.
Online Resources
This book has its own web page at
http://pragprog.com/book/msard2
where you can
download the code for all examples. (If you have the ebook version of this
book, clicking the little gray box above each code example downloads that
source file directly.) You can also participate in a discussion forum and meet
other readers and me. If you find bugs, typos, or other annoyances, please
let me and the world know about them on the book’s errata page.
7
On the web page you will also find a link to a Flickr
8
photo set. It contains
all the book’s photos in high resolution. There you can also see photos of
reader projects, and we’d really like to see photos of your projects, too!
Let’s get started!
6.
http://processing.org
7.
http://www.pragprog.com/book/msard2/errata
8.
http://flickr.com
report erratum • discuss
Code Examples and Conventions • xvii
www.it-ebooks.info