From: Bartosz Golaszewski Date: Thu, 22 Jun 2017 19:11:18 +0000 (+0200) Subject: README: add an example of gpiomon custom output formats X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f0b441006a5e6f3b182cbfce8f38595142e52d9c;p=qemu-gpiodev%2Flibgpiod.git README: add an example of gpiomon custom output formats In the examples section: show how to specify a custom, easily parsable output in gpiomon. Signed-off-by: Bartosz Golaszewski --- diff --git a/README.md b/README.md index 9029b02..6004fc1 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,10 @@ Examples: event: RISING EDGE offset: 3 timestamp: [ 1151.815449803] event: RISING EDGE offset: 3 timestamp: [ 1152.091556803] + # Wait for a single falling edge event. Specify a custom output format. + # gpiomon --format="%e %o %s %n" --falling-edge gpiochip1 4 + 0 4 1156 615459801 + # Pause execution until a single event of any type occurs. Don't print # anything. Find the line by name. # gpiomon --num-events=1 --silent `gpiofind "USR-IN"`