Skip to main content

Section 12.2 Day 13 In-Class: The Accelerometer as an I2C Device

We wrote a device driver for the seven-segment display on the I2C bus. You read about the LSM303AGR accelerometer, its breakout board, and its WHO_AM_I register. Today we’ll wire the accelerometer onto the bus, verify that we can talk to it, and watch the transactions themselves on the logic analyzer. We’ll also make a start on its device driver.