Included proper switch for i2c and uart

Code now supports I2C and UART