INPUT
 
Syntax

void INPUT ( int expression);

Description


INPUT will set the Port 0 pin corresponding to expression to an input.

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("Pin 15 is ");
    INPUT(15);                          // make pin 15 an INPUT

    printDec(IN(15));                  // now read the value on that pin
    printCh('\n');

See also