Skip to main content

OUT

Syntax

OUT ( expression )

Description

When writing to OUT (expression), the pin corresponding to expression will be set a voltage level corresponding to TRUE or FALSE, -1 or 0.

This directive does not change the input/output configuration of the pin.

The ARMmite allows control of 24 pins (0..23), with pins 16..23 shared with the AD pins.

Example

' Set pin 9 as an output

OUTPUT 9

' Drive pin 9 high

OUT(9) = 1

PRINT "The current value of Output pin 9 is "; OUT(9)

The current value of Output pins is 1

Differences from other BASICs

  • no equivalent in Visual BASIC
  • equivalent to OUT0..15 in PBASIC

See also