GPIO GPI2
This command, can be used to manage general purpose input #2.
GPI2 ends on pin 7 of 22 pins main connector.
Synopsis
GPIO GPI2 [<argument>]
Arguments
<none> | Used to get actual input status. Returns actual input status, followed by OK. |
NOTIFY | Used to be notifyed when input status changes. Returns only OK. |
SILENT | Used to unregister notification feature on input status changes. Returns only OK. |
Examples
Getting input status:
GPIO GPI2 ON OK
Enable notification
GPIO GPI2 NOTIFY OK
Events
If enabled, unsolicited events will be triggered on input status changes.
EVNT GPI2 ON