firmware: i2c and compass