Untested code for i2c devices.