![Parallax 28036 Скачать руководство пользователя страница 4](http://html1.mh-extra.com/html/parallax/28036/28036_manual_3607866004.webp)
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.spin"
CON
_clkmode = xtal1 + PLL16X
_xinfreq = 5_000_000
PUB Main
dira[0..1]~ ' Set pins 0 and 1 to inputs
pst.Start(115_200) ' Parallax Serial Terminal at 115,200 baud
repeat
pst.Home
pst.str(string("Phototransistor 1: "))
pst.bin(ina[0], 1) ' Display value for Out 1
pst.NewLine
pst.str(string("Phototransistor 2: "))
pst.bin(ina[1], 1) ' Display value for Out 2
waitcnt(clkfreq / 4 + cnt) 'Wait 1/4 second
Note:
This program uses the Parallax Serial Terminal object, 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.