Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ $ pip install yepkit-pykush
```bash
$ python pykush.py -h
usage: pykush.py [-h] [-s SERIAL]
(-l | -u [UP [UP ...]] | -d [DOWN [DOWN ...]] | -r READ | -w WRITE WRITE | -p)
(-l | -u [UP [UP ...]] | -d [DOWN [DOWN ...]] | -o | -f | -r READ | -w WRITE WRITE | -p)

Yepkit YKUSH command line tool.

Expand All @@ -92,6 +92,8 @@ optional arguments:
-d [DOWN [DOWN ...]], --down [DOWN [DOWN ...]]
the downstream port numbers to power down, none means
all
-o, --power_on switch ON 5V power output
-f, --power_off switch OFF 5V power output
-r READ, --read READ the GPIO pin to read from
-w WRITE WRITE, --write WRITE WRITE
the GPIO pin to write to
Expand Down
4 changes: 3 additions & 1 deletion pykush/pykush.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
Command line usage:

usage: pykush_hidapi.py [-h] [-s SERIAL]
(-l | -u [UP [UP ...]] | -d [DOWN [DOWN ...]] | -p)
(-l | -u [UP [UP ...]] | -d [DOWN [DOWN ...]] -o | -f | -p)

Yepkit YKUSH command line tool.

Expand All @@ -47,6 +47,8 @@
-d [DOWN [DOWN ...]], --down [DOWN [DOWN ...]]
the downstream port numbers to power down, none
means all
-o, --power_on switch ON 5V power output
-f, --power_off switch OFF 5V power output
-p, --persist make the current running configuration persistent
across reboots (only supported on devices with
firmware v2.0 and above)
Expand Down