September 2013
Intermediate to advanced
332 pages
8h 30m
English
Content preview from Building iPhone and iPad Electronic ProjectsBecome an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
Start your free trial

Chapter 2. Accessing the Other Built-in Sensors
Writing our first GUI-based program to display sensor data from the iPhone and iPad in Chapter 1 was a bit involved. After all, you were learning a new programming environment as well as learning about the sensors. With that basic knowledge (pardon the pun), it’s time to quickly expand what we can do. Among other things, we need to finish our tricorder!
The Gyroscope
Starting with the iPhone 4, all iPhones include a three-axis gyroscope. You might think a gyroscope is unnecessary, since ...