From f0b441006a5e6f3b182cbfce8f38595142e52d9c Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Thu, 22 Jun 2017 21:11:18 +0200 Subject: [PATCH] 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 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) 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"` -- 2.30.2