From 3212e5797a4996fecfa24e4ed996569cdff507b2 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Mon, 12 Aug 2019 14:27:32 +0200 Subject: [PATCH] bindings: python: examples: wait for ENTER press in gpioset.py After setting the line values in gpioset.py: don't exit until the user presses ENTER. This makes the example work the same as the 'wait' mode in the original gpioset utility. Signed-off-by: Bartosz Golaszewski --- bindings/python/examples/gpioset.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/python/examples/gpioset.py b/bindings/python/examples/gpioset.py index 3134b3f..efc11f2 100755 --- a/bindings/python/examples/gpioset.py +++ b/bindings/python/examples/gpioset.py @@ -26,3 +26,4 @@ with gpiod.Chip(sys.argv[1]) as chip: lines = chip.get_lines(offsets) lines.request(consumer=sys.argv[0], type=gpiod.LINE_REQ_DIR_OUT) lines.set_values(values) + input() -- 2.30.2