SPIOUT
Action

Sends a value of a variable to the SPI-bus.

Syntax

SPIOUT var , bytes

Remarks

var The variable whose content must be send to the SPI-bus.
bytes The number of bytes to send.
See also
SPIIN , CONFIG SPI


Example


CONFIG SPI = SOFT, DIN = P1.0, DOUT = P1.1, CS=P1.2, CLK = P1.3
Dim a(10) as Byte , X As Byte
SPIOUT a(1) , 5 'send 5 bytes
SPIOUT X , 1 'send 1 byte