6.3.1.1 Configuring a Pin as Input or Output

Use the following command to configure a pin as Input or Output.

AT+IOCFG=<Pin>, <Type>, <Dir>
  • Pin: Replace this with the number of the pin that needs to be configured.
  • Type: Set this with ‘0’ to configure a GPIO pin.
  • Dir: Set this with ‘0’ or ‘1’ to specify either as Input or Output.