📖⚡OUTPUT

Sets a pin tri-state to "Output".

 
This means the pin can conduct power (both In and Out).

The OUTPUT command only affects chips with pins that can change direction (Kic8).

Note: Do not confuse the OUTPUT command, with setting a pin HIGH to "source" power.

Syntax

OUTPUT PinNumber

Example


 

' OUTPUT Example
' Output.txt

' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
' Select Kic8 for this to compile
' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  ' Set Pin 2 as an OUTPUT pin
  OUTPUT 2 

  ' Turn the pin on
  HIGH   2 

Related commands: