Page 40 ·
Robotics with the Boe-Bot
P3.
The last three
DEBUG
lines can be deleted. An additional
CR
is needed after the
"Hello" message.
' Robotics with the Boe-Bot – HelloBoeBotCh01Project03.bs2
' Send message to Debug Terminal and do some math.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Hello, this is a message from your Boe-Bot.", CR
DEBUG "What's 7 X 11?", CR, "The answer is: ", DEC 7 * 11
END
The output from the Debug Terminal is:
Hello, this is a message from your Boe-Bot.
What's 7 X 11?
The answer is: 77
This output is the same as it was with the three lines. This is an example of
using commas to output a lot of information, using only one
DEBUG
statement.