Added reset for TWI and modified SPI interface to support both devices