Setup GPIO pin direction.
Called without parameters, this command return the current status of IO pin direction setting.

Synopsis

GPIO GPIO DIR [<IN/OUT>]

Return

Without parameter:

ON
OK

Or:

OUT
OK

Or with parameter:

OK