Copyright © Parallax Inc.
Page 4 of 5
Propeller BOE and Propeller QuickStart
Propeller BOE Wiring Diagram
Propeller QuickStart Wiring Diagram
OBJ
pst : "Parallax Serial Terminal"
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
PUB Main
dira[0]~ ' Set pin 0 to input
pst.Start(115_200) ' Set Parallax Serial Terminal to 115,200 baud
repeat
if ina[0] == 1
pst.Str(string("Sound detected!")) ' If loud sound detected
pst.NewLine
waitcnt(clkfreq / 10 + cnt) ' Wait 1/10 second
' Repeat
Note:
This program uses the Parallax Serial Terminal object library, which is 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.