Added write vi

vi takes a number as input and writes it to spi