Write class I2c and Compass