ME310G1/ME910G1/ML865G1 AT Commands Reference Guide
80617ST10991A Rev.4 Page 292 of 545 2020-04-15
3.8.2. AT#GPIO - General Purpose Input/Output Pin Control
Set the value of the general-purpose input/output GPIO pins.
AT#GPIO=[<pin>,<mode>[,<dir>[,<save>]]]
Execution command sets the value of the general purpose GPIO pin.
Parameters:
GPIO pin number. The supported range goes from 1 to Max
value that is hardware dependent. Use AT#GPIO=? test
command to know Max value.
sets GPIO pin configuration, its action depends on <dir> value.
Refer to Additional info sections.
sets the GPIO pin in input, output, or alternate functions. Refer
to Additional info sections.
pin set in alternate functions.
GPIO pin save configuration. If <save> is omitted, the
configuration is stored in NVM only if user set ALTx function.
GPIO pin configuration is not saved
GPIO pin configuration is saved
This table shows the GPIOs configurations set by <dir>=0 and <mode> values ranging
from 0 to 4.
AT#GPIO=<pin>,<mode>,0
Set INPUT, any internal pull up/pull down removed.
Set INPUT, any internal pull up/pull down removed.
Read mode, <dir> can be omitted, see Additional info section below
Set INPUT, and internal pull up.