9.28.1.1 +IOCFG

This command is used to configure a pin as an ADC, PWM, or Digital I/O with direction.

Security – Default Security for the command is: GGGG

Table 9-282. Command Syntax

Command

Description

Security

AT+IOCFG=<PIN>,<TYPE>

Configure pin as ADC or PWM

GGGG
AT+IOCFG=<PIN>,<TYPE>,<DIR>

Configure pin as Digital I/O

GGGG
Table 9-283. Command Parameter Syntax

Parameter Name

Type

Description

<PIN>

Integer

Pin/Channel to be used

<TYPE>

Integer

Pin type

  1. Configure as Digital I/O
  2. Configure as ADC
  3. Configure as PWM

<DIR>

Integer

Configure pin as Output or Input

  1. Configure as Output
  2. Configure as Input