Specifications

BASIC Stamp II
Parallax, Inc. • BASIC Stamp Programming Manual 1.8 • Page 327
2
' Net #2: This BS2 waits for the word "ping" (plus LF/CR)
' then pauses 2 seconds and sends the word "pong" (LF/CR)
' and loops.
b_mode con 32852 ' Baudmode: 9600 noninverted, open, 8N
again:
serin 0,b_mode,[wait ("ping",10,13)]
pause 2000
serout 0,b_mode,["pong",10,13]
goto again
The result of the two programs is that a monitoring PC would see the
words “ping” and “pong” appear on the screen at 2-second intervals,
showing that the pair of BS2s is sending and receiving on the same
lines. This arrangement could be expanded to dozens of BS2s with the
right programming.
Demo Program
See the examples above.