SEROUT
 
Syntax


#include <SERIAL.bas>                             ' source in /Program Files/Coridium/BASIClib

SUB SEROUT( pin, baud, posTrue, OUTcnt, BYREF OUTlist AS STRING)

Description


SEROUT sends a string of characters out on pin as an asynchronous data stream.  baud and posTrue set the parameters for the transmission.  If OUTcnt is 0, then OUTlist will be sent until a 0 is encountered (the 0 is not sent).

Baudrates can be up to 115.2 Kbaud for all pins

Example

#include <SERIAL.bas>

DIM Astr(20) as STRING

Astr = "123"
SEROUT (3, 1200, 0, 3, Astr)     ' sends out   123 at 1.2Kbaud, negative true

Differences from other BASICs

See also