Skip to main content

HIGH

Syntax

HIGH  expression

Description

HIGH will set the pin corresponding to expression to a positive value (3.3V) and then set it to an output. HIGH and LOW have been added for PBASIC compatablity, OUT(x)=1 will be faster.

Example

DIRS = $00FF ' set
pins 0 to 7 to output

OUTS =

0
' and then set them low or to 0 V

FOR I=0 TO 7
PAUSE (1000)

HIGH I
' set each pin HIGH one after the other every second

NEXT I

Differences from other BASICs

  • no equivalent in Visual BASIC
  • none from PBASIC

See also