This command, can be used to manage general purpose input/output.
This I/O pin is located on pin 3 in the infrared connector.
This isn't a power pin! Drive no more than 4mA at 3V3.

Synopsis

GPIO GPIO [<argument>]

Arguments

<none> Used to get actual input status.
Returns actual input status, followed by OK.
IN Used to setup pin direction in input.
Returns only OK.
OUT Used to setup pin direction in output.
Returns only OK.
NOTIFY Used to be notifyed when gpio pin status changes.
Returns only OK.
SILENT Used to unregister notification feature on gpio pin status changes.
Returns only OK.
SET Used to set the status of the relative gpio pin.
Returns only OK.
CLEAR Used to clear the status of the relative gpio pin.
Returns only OK.

Examples

Getting pin status:

GPIO GPIO
ON
OK

Enable notification

GPIO GPIO NOTIFY
OK

Events

If enabled, unsolicited events will be triggered on pin status changes.

EVNT GPIO ON