BS1 icon BS2 icon BS2e icon BS2sx icon BS2p icon BS2pe icon BS2px icon

HIGH / LOW Example




Syntax: HIGH Pin


Make the specified pin an output and high.

* Note: expressions are not allowed as arguments on the BS1. The range of the Pin argument on the BS1 is 0–7.

Quick Facts

  BS1 and all BS2 models
Related Commands




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:

  PIN6 = 1
  DIR6 = 1

  OUT6 = 1
  DIR6 = 1

Using the HIGH command is faster in this case.

Go to PBASIC Language home page

Open Getting Started with Stamps in Class

Open Connection Troubleshooting

BASIC Stamp Help Version 2.5.4

Copyright © Parallax Inc.