1vv0301515 Rev.1
Page 53 of 59
2018-07-18
GPIO Pins Configuration
The module
provides 8 GPIO pins, which can be configured in input or output direction.
AT#GPIO=[<pin>,<mode>[,<dir>]]
User applications, through GPIO AT commands, can control external user equipment connected
to GPIO pins. Simple or no circuitries are needed to perform the required hardware interface.
The GPIO setting is not saved on power off. At power on, repeat the GPIO
setting. For detailed GPIO pins descriptions refer to document [1].
2.13.1.
Set GPIO Pin as Output
Use the following AT command to set a GPIO as output with Low or High-status value.
AT#GPIO=<pin>,<mode>,1
Set GPIO1 pin as Output with Low status:
AT#GPIO=1,0,1
OK
GPIO1 pin is set in output; its status is Low
Set GPIO1 pin as Output with High status:
AT#GPIO=1,1,1
OK
GPIO1 pin is set in output; its status is High
2.13.2.
Set GPIO Pin as Input
Use the following AT command to set a GPIO as input. A dummy value must be specified for pin
status value.
AT#GPIO=<pin>,<dummy_value>,0
Example
Set GPIO9 pin as Input:
AT#GPIO=3,0,0
OK
GPIO3 pin is set in input