Implement LSM303DLHC with C++ classes.