Download Print this page

Parallax 32440 Manual page 4

Xbee wireless pack kickstart

Advertisement

DO
DEBUG CLS, "Type a character: "
DEBUGIN temp
SEROUT Tx, Baud, [temp]
SERIN Rx, Baud, [temp]
SEROUT 16, Baud,
[CR, "You entered: " , temp]
PAUSE 1500
LOOP
Note: When this program is run the BASIC Stamp Debug Terminal will automatically open.
Press a letter or number key. You will know things are working when each key you press is
echoed back to you. If you prefer, uncheck the Echo Off box at the bottom of the Debug
Terminal to prevent double characters from appearing.
Propeller QuickStart
' Requires remote XBee in loopback mode (DIN connected to DOUT)
OBJ
PC
:
"FullDuplexSerial"
XB
:
"FullDuplexSerial"
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
Copyright © Parallax Inc.
' Prompt for character
' Catch user response
' Send to transmitting XBee
' Get echo from receiving XBee
' Display result
' Wait 1-1/2 seconds
Page 4 of 7

Advertisement

loading