Action
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 , SPIINIT
Example
Dim a(10) as byte
CONFIG SPI = SOFT, DIN = P1.0, DOUT = P1.1, CS=P1.2, CLK = P1.3
SPIINIT
SPIIN a(1) , 4 'read 4 bytes