
24 Make: Robotic Arms
to store a number. In fact, the int we write before the name of our variable
refers to the data type of the variable we’re creating.
In this case, it’s an integer variable, and an integer is nothing more than
a whole number. In this line of code, all we’re doing is creating a variable
called pos and giving it an initial value of 90. Now, it’s important to
understand that we could have named our variable anything. We’re calling
this variable pos to stand for position. This is the main variable we’re going
to use to control the position of our servo. We give it an initial value of 90 so it
starts out right in the middle of ...