Table of Contents

Advertisement

2
1
2
e
1
NOTE: Expressions are not
allowed as arguments on the BS1.
The range of the Pin argument on
the BS1 is 0 – 7.
Figure 5.5: Example LED Circuit.
5: BASIC Stamp Command Reference – HIGH

HIGH

2
2
HIGH Pin
sx
p
Function
Make the specified pin output high.
• Pin is a variable/constant/expression (0 – 15) that specifies which
I/O pin to set high. This pin will be placed into output mode.
Explanation
The HIGH command sets the specified pin to 1 (a +5 volt level) and then
sets its mode to output. For example,
HIGH 6
does exactly the same thing as:
OUT6 = 1
DIR6 = 1
Using the HIGH command is faster, in this case.
Connect an LED and a resister as shown in Figure 5.5 for the demo
program below.
BS1
BS2
BS2e BS2sx BS2p
P0
BASIC Stamp Programming Manual 2.0c • www.parallaxinc.com • Page 135
LED
470
Vss

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BASIC Stamp 2e and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents