28129 Parallax Inc, 28129 Datasheet - Page 57

TEXT BASIC ANALOG & DIGITAL

28129

Manufacturer Part Number
28129
Description
TEXT BASIC ANALOG & DIGITAL
Manufacturer
Parallax Inc
Type
Programmingr
Datasheet

Specifications of 28129

Style
Book
Title
Basic Analog and Digital
Contents
Basic Analog and Digital Text
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
The Output
If the pot is adjusted somewhere in the middle of its range, the output displayed in the
Debug Terminal should look similar to Figure 3-4. As you adjust the pot, the zeros and
ones should change rapidly. Each time you stop adjusting the pot, the output should
settle, and a new pattern of eight zeros and ones should display.
If your Debug Terminal responds this way, it’s likely your circuit and program are
working right. If it doesn’t do this, check the wiring on your circuit. Also make sure code
is entered correctly. Sometimes just one wrong letter will cause the program not to work
properly. The Debug Terminal could also be hidden from view. It can be accessed from
the menus by selecting Run/Debug/New Terminal in the BASIC Stamp Editor.
About the Code
The first few lines of text in this program are comments that begin with apostrophes, and
they don't have any function in the program aside from explaining it to someone reading
the code, and identifying the BASIC Stamp model and PBASIC version.
' -----[ Title ]----------------------------------------------
' Basic Analog and Digital - PL3_1R0.bs2
' Program Listing 3.1 Revision 0.
' {$STAMP BS2}
' {$PBASIC 2.5}
Figure 3-4
Debug Terminal
Output for Program
Listing 3.1.

Related parts for 28129