Chapter 2

Creating Arduino Sketches

IN THIS CHAPTER

check Learning the essentials of the Arduino language

check Working with variables

check Adding if statements to your programs

check Using while and for loops

check Creating your own functions

Welcome to programming! This chapter is a very brief introduction to the programming language you use to develop Arduino sketches. If you’ve never done any kind of computer programming before, you’re in for an interesting and fun journey. The nuances of computer programming can be difficult to grasp at first, but once you get your mind around some of the basic concepts, you’ll discover all sorts of things you can coerce your Arduino to do.

technicalstuff The Arduino language is actually a standard programming language known as C++. C++ happens to be an advanced version of a somewhat simpler language called C. Because most beginning Arduino programs don’t actually use any of the advanced ...

Get Electronics All-in-One For Dummies, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.