GPIO

lager gpio

Lager gpio commands

lager gpio [OPTIONS] COMMAND [ARGS]...

input

Returns GPIO level (0 for low, 1 for high)

GPIO can be 0-14

lager gpio input [OPTIONS] GPIO

Options

--gateway <gateway>

ID of gateway to which DUT is connected

Arguments

GPIO

Required argument

output

Sets GPIO level.

GPIO can be 0-14

lager gpio output [OPTIONS] GPIO [LOW|HIGH]

Options

--gateway <gateway>

ID of gateway to which DUT is connected

Arguments

GPIO

Required argument

LEVEL

Required argument

set

Sets pin GPIO mode (input/output)

If type is IN, --pull controls the internal GPIO pull-up/down resistor. Otherwise it has no effect.

GPIO can be 0-14

lager gpio set [OPTIONS] GPIO [IN|OUT]

Options

--gateway <gateway>

ID of gateway to which DUT is connected

--pull <pull>

Sets or clears the internal GPIO pull-up/down resistor.

Default

OFF

Options

DOWN, OFF, UP

Arguments

GPIO

Required argument

TYPE_

Required argument

trigger

Send a trigger pulse to GPIO. The GPIO is set to level for pulse-length microseconds and then reset to not level.

GPIO can be 0-14

lager gpio trigger [OPTIONS] GPIO

Options

--gateway <gateway>

ID of gateway to which DUT is connected

--pulse-length <pulse_length>

Required Pulse length in microseconds (1-100)

--level <level>

Required Pulse level

Options

HIGH, LOW

Arguments

GPIO

Required argument