
Originally Posted by
N6VMO_
Right out of the MicroCode Studio Help:
FOR B0 = 0 TO 5 ' Count from 0 to 5
LOOKUP B0,["Hello!"],B1 ' Get character number B0 from string to variable B1
SEROUT 0,N2400,[B1] ' Send character in B1 to Pin0 serially
NEXT B0 ' Do next character
You have to define your variables B0 and B1. Or you can add this include to your program. See page 24 ish of the manual.
Code:
Include "bs2defs.BAS"
FOR B0 = 0 TO 5 ' Count from 0 to 5
LOOKUP B0,["Hello!"],B1 ' Get character number B0 from string to variable B1
SEROUT 0,N2400,[B1] ' Send character in B1 to Pin0 serially
NEXT B0 ' Do next character
Bookmarks