O'Reilly logo

Beginning Arduino Programming by Brian Evans

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Operators

Now that we have thoroughly explored what the variables are, what can we do with them? To answer this question we need to examine various operators, which are special characters used to perform specific operations. For now, we will stick with simple assignment, arithmetic, and compound operators, and get into some others in the next chapter.

When we talked about declaring variables, we used the assignment operator, =, which looks just like the equals sign but isn’t exactly the equals sign we know and love from algebra class. Take a look at the following example:

myValue = 255;

Here, the assignment operator is telling the compiler to take the value or expression on the right side of the operator and assign that value to the variable ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required