BASIC stamp manual v2.2
5: BASIC Stamp Command Reference – HIGH
BASIC Stamp Syntax and Reference Manual 2.2 • www.parallax.com • Page 215
HIGH
BS1 BS2 BS2e BS2sx BS2p BS2pe BS2px BS2px
HIGH Pin
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.
Quick Facts
Table 5.31: HIGH Quick Facts.
BS1 and all BS2 Models
Related
Commands
LOW and TOGGLE
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 and more concise, in this case.
Connect an LED and a resistor as shown in Figure 5.7 for demo program
HIGH.bs2, below.
Figure 5.7: Example LED Circuit.
P0
470
Ω
LED
Vss
NOTE: Expressions are not allowed as
arguments on the BS1. The range of
the Pin argument on the BS1 is 0 – 7.
1
1
A
ll
2
All
2