automating i2c spi switch for radio