Examples:
Querying the GPIO1 pin mode:
$GP ?*08
$GP 7*00
The GPIO1 pin mode is set to
Output, low while in sleep mode. Otherwise output is high
.
Reading the GPIO1 pin in ADC mode (must be in mode 1):
$GP @*77
$GP 3.282V*44
The GPIO1 pin mode has an ADC reading of 3.282V.
Reading the GPIO1 pin in digital input mode:
$GP @*77
$GP L*7b
The GPIO1 pin mode is a logic low.
Setting the GPIO1 pin mode to input and wake on a high-to-low transition:
$GP 2*05
$GP OK*33
Sets the GPIO1 pin mode to
input and wake on a high-to-low transition
.
© 2022 SWARM TECHNOLOGIES
SWARM M138 MODEM PRODUCT MANUAL · REV 1.20 · FEBRUARY 2022
PAGE
51