User Manual

<dir> - GPIO<pin> direction setting
<stat> - status of the pin
0 - LOW
1 HIGH
In case the GPIO pin direction is set to ALTERNATE FUNCTION (2), then the reported
<stat> has no meaning and must not kept as valid, but must be threaten as a dummy value.
The query reports depending on the pin direction:
- the read pin status in case the direction is input;
- the previously set pin status in case the direction is output.
In any case, you can know if the pin at the query moment is high or low and the pin direction.
For example:
1- Let us assume you want to query the GPIO3 pin for its status:
command
AT#GPIO=3,2<cr>
response:
#GPIO: 0,1
OK
In this case, the GPIO3 pin was set in input direction and its status has been measured to be
HIGH.
2- Let us assume you want to query the GPIO4 pin for its status:
command
AT#GPIO=4,2<cr>
response:
#GPIO: 1,0
OK
In this case, the GPIO4 pin was set in output direction and its status is LOW.
3- Let us assume you want to query the GPIO6 pin for its status:
command
AT#GPIO=6,2<cr>
response: