DIGITAL
 
Syntax

#define DIGITAL(int IOpin)
Description

 

Dual Use AD pins

ARMmite version

On reset or power up the AD pins are configured as AD inputs.  To change those to digital IOs, the user must individually specify a switch to digital using DIGITAL(IOpin) which is a #define for IOpins 16-23.
Example

    DIGITAL(4);             // switch AD(4) to a digital pin accessed at IO(20)
    

See also