README: add an example of gpiomon custom output formats
authorBartosz Golaszewski <bartekgola@gmail.com>
Thu, 22 Jun 2017 19:11:18 +0000 (21:11 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 22 Jun 2017 19:14:55 +0000 (21:14 +0200)
In the examples section: show how to specify a custom, easily parsable
output in gpiomon.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
README.md

index 9029b025a33bdabd70ef00f657dcbeea05a4bdf6..6004fc1e1e117a147a04c5db9223ad7dfc8d3974 100644 (file)
--- 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"`