Download Print this page

sparkfun ITG-3200 Hook-Up Manual page 6

Advertisement

Page 6 of 9
The Loop section of the code is usually the 'meat' of the sketch, in this case
the loop is very straightforward. The sketch reads the X, Y, and Z
gyroscope values using the readX(), readY() and readZ() functions. After
storing these values, they are printed to the serial terminal. We delay 10 ms
at the end of the loop so that we don't try reading information from the
sensor faster than it can be provided. For the Setup and Loop sections of
the code to look so simple we had to use a couple of functions, let's see
how the functions work.

Advertisement

loading
Need help?

Need help?

Do you have a question about the ITG-3200 and is the answer not in the manual?

Questions and answers