2 setting gpio pin output status, At#gpio=,,1 Page 79
Page 79

GM862-QUAD / PY Software User Guide
1vv0300747 Rev. 3 - 10/07/07
Reproduction forbidden w ithout Telit Communications S.p.A. w ritten authorization - All Rights Reserved
page 79 of 96
2- Let's assume you want to query the GPIO4 pin for its status:
command:
AT#GPIO=4,2
response:
#GPIO: 1,0
OK
In this case, the GPIO4 pin was set in output direction and its status is LOW.
3- Let's assume you want to query the GPIO6 pin for its status:
command:
AT#GPIO=6,2
response:
#GPIO: 2,0
OK
In this case, the GPIO6 pin was set in "alternate function" direction and therefore works as alarm
output. The reported status = LOW has no meaning.
3.6.2.2 Setting GPIO pin output status
To set the pin status (when pin is set as OUTPUT):
•
Send command
AT#GPIO=
where:
7 – GPIO7
2 – GPIO2
8 – GPIO8
3 – GPIO3
9 – GPIO9
4 – GPIO4
10 – GPIO10
5 – GPIO5
11 – GPIO11
6 – GPIO6
12 – GPIO12
13 – GPIO13
0 – LOW
1 – HIGH
•
wait for response
OK
For example:
1- Let's assume you want to set the GPIO3 pin HIGH:
command:
AT#GPIO=3,1,1
response:
OK