Copyright © Parallax Inc. Page 4 of 5
Propeller QuickStart
OBJ
pst : "FullDuplexSerial"
rc : "RCTime"
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
PUB Go | UD, LR
pst.start(31, 30, 0, 115200)
repeat
rc.rctime(0, 1, @LR)
rc.rctime(1, 1, @UD)
pst.Str(String("UD = "))
pst.dec(UD)
pst.Str(String(", LR = "))
pst.dec(LR)
pst.tx(13)
waitcnt(clkfreq / 2 + cnt) ' 1/2 second delay
Important! This program uses the FullDuplexSerial.spin and RCtime.spin object libraries,
which are included with the Propeller Tool software download.
Note: To view the results of the demonstration, after uploading is complete run the Parallax
Serial Terminal from the Run menu, or press F12. Momentarily depress the Reset button on the
Propeller QuickStart board to restart the program.