OUTPUT
 
Syntax

void OUTPUT (int expression  );
Description


OUTPUT will set the Port 0 pin corresponding to expression to an output.

With the SuperPRO and PROplus, NXP has added more configurable port pins.  We are adopting their convention for control of those pins.  FIO0DIR, FIO1DIR, FIO2DIR, and FIO4DIR control the input/output status.  Writing 1 to a bit  will make it an output.  More details in the NXP user manuals.

Example

    printStr("LED on\n");
    OUTPUT(15);
    LOW(15);

See also