BASIC Stamp II Manual 0.94 • Parallax, Inc. • (916) 624-8333 • Page 63
BASIC Stamp II
SHIFTOUT
Shift bits out synchronously.
usage: SHIFTOUT dpin,cpin,mode,[data{\bits},...]
Dpin is the data output.
Cpin is the clock output.
Mode is 0 for lsb-first or 1 for msb-first.
Data is a value to be shifted out.
Bits is an optional bit count. Values from 1-16 can be given; 8 is the
default.
The following symbols are defined for use with SHIFTOUT:
Symbol Value
LSBFIRST 0
MSBFIRST 1
Data is shifted out at approximately 16 kbits per second.