Subsection 12.5.9 Part 10: Lab 7
Today’s work is the preparation for Lab 7. In the lab you are asked to run two I2C devices on the same bus at once, the accelerometer and the seven-segment display. You are asked to compute and display tilt from −180° to 180°, with
atan2() and round(). And you are asked to light orientation LEDs the way a phone does when its screen rotates; how you show the orientation is your own design decision. The pre-lab is a working accelerometer driver, which is what you just built.
