Reads a value from the SPI-bus.
Syntax
SPIIN var, bytes
Remarks
var The variable that is assigned with the value read from the SPI-bus. bytes The number of bytes to read. See also SPIOUT , CONFIG SPI
Example
Dim a(10) as byte CONFIG SPI = SOFT, DIN = P1.0, DOUT = P1.1, CS=P1.2, CLK = P1.3 SPIIN a(1) , 4 'read 4 bytes