#include <SPI.bas> ' source in /Program Files/Coridium/BASIClib
SUB SPIOUT (CSpin, CLKpin, OUTpin, LSBfirst, OUTcnt, BYREF OUTlist AS STRING)
In the simplest case, out_pin is used to output data clocked by clk_pin, from the OutputList.
OutputList can contain a list of constants, variables, "constant-string" or stringame without a count. The latter will send out bytes starting from stringname(0) until a 0 byte is read. The 0 is not shifted out, if that is required either a count should be specified so as to include the 0.
Data is shifted out MSB first and each element of the OutputList is
treated as a byte. The LSBfirst can be used to change the bit order.
Data is shifted out at 300 Kbits/sec