example code for i2c dc motor firmware