Syntax
Arguments
Level Values
The following values are accepted (case-insensitive):Options
Usage
Hold Mode
--hold has no effect (#840). The box keeps the device session open, so the pin keeps its level
after the command exits, with or without --hold. The command prints a note and exits.
To release a pin, set it to the other level.
Supported Hardware
The pin column lists the exact channel tokens that
lager nets add accepts. On a
multi-channel FTDI part, the net’s interface selects channel A, B, C or D.
LabJack U3 Pins
FIO0-FIO3are not offered asgpiochannels. On a U3-HV they are fixed high-voltage analog inputs.- Lager treats every U3 as a U3-HV, so a U3-LV also loses these four digital lines.
- A write sets the pin to digital mode and to output.
- A
gpionet saved onFIO0-FIO3before version 0.46.1 still lists, but fails when you use it. Delete that net.
Aardvark Pin Mapping
The Aardvark I2C/SPI adapter exposes 6 GPIO pins on its 10-pin header. Give the signal name as the channel:FT232H Pin Mapping
The FT232H and FT2232H offer 12 GPIO channels.AD0-AD3 are not offered as gpio
channels:
Examples
Related Commands
lager gpi- Read GPIO input state
Notes
- GPO is for setting output pins only
- Use
lager gpito read input pins - Default net can be set with
lager defaults add --gpio-net - Pin must be configured as output in net configuration
- Toggle reads current state and inverts it
- USB-202 channels are
DIO0-DIO7 --holdhas no effect; it prints a note and exits- The command sets the output level and exits immediately; the pin retains its state until the next command

