Spi added to all ultrasonic code