implemented first I2C function for quad-encoder